private static void CreateSynonymsEncryptedUsingCustomerManagedKey(SearchIndexClient indexClient, IConfigurationRoot configuration)
        {
            var synonymMap = new SynonymMap("desc-synonymmap", "hotel, motel\ninternet,wifi\nfive star=>luxury\neconomy,inexpensive=>budget")
            {
                EncryptionKey = GetEncryptionKeyFromConfiguration(configuration)
            };

            indexClient.CreateOrUpdateSynonymMap(synonymMap);
        }
Beispiel #2
0
        private static void UploadSynonyms(SearchIndexClient indexClient)
        {
            var synonymMap = new SynonymMap("desc-synonymmap", "hotel, motel\ninternet,wifi\nfive star=>luxury\neconomy,inexpensive=>budget");

            indexClient.CreateOrUpdateSynonymMap(synonymMap);
        }