azure-cognitive-search

Azure Search .net SDK- How to use “FindFailedActionsToRetry”?

你说的曾经没有我的故事 提交于 2020-05-13 05:03:48
问题 Using the Azure Search .net SDK, when you try to index documents you might get an exception IndexBatchException . From the documentation here: try { var batch = IndexBatch.Upload(documents); indexClient.Documents.Index(batch); } catch (IndexBatchException e) { // Sometimes when your Search service is under load, indexing will fail for some of the documents in // the batch. Depending on your application, you can take compensating actions like delaying and // retrying. For this simple demo, we

How to search a term with a middle dash in azure search?

旧巷老猫 提交于 2020-03-25 20:17:23
问题 I'm learning to use azure search and I dont find a way to search a term with a middle dash into the ItemId field, doesn't care if the term to search it's at the beginning or at the middle. I have these fields with data in my index +-----+--------------------+-------------+ | Cat | ItemId | Description | +-----+--------------------+-------------+ | 100 | 400800-1100103U | desc item 1 | | 100 | 400800-11001066 | desc item 2 | | 100 | 400800-11001068 | desc item 3 | | 101 | 400800-110010F6 |

How to search a term with a middle dash in azure search?

纵饮孤独 提交于 2020-03-25 20:17:21
问题 I'm learning to use azure search and I dont find a way to search a term with a middle dash into the ItemId field, doesn't care if the term to search it's at the beginning or at the middle. I have these fields with data in my index +-----+--------------------+-------------+ | Cat | ItemId | Description | +-----+--------------------+-------------+ | 100 | 400800-1100103U | desc item 1 | | 100 | 400800-11001066 | desc item 2 | | 100 | 400800-11001068 | desc item 3 | | 101 | 400800-110010F6 |

Why would AzureSearch SDK spontaneously fail with transport connection issue?

▼魔方 西西 提交于 2020-03-18 07:00:07
问题 We had some big excitement yesterday. Two of our web apps (both deployed and untouched for at least 3 months) that use AzureSearch's SDK stopped working at different times (one early morning; the other in the evening). The indexClient.Documents.Search method started failing with this error: HTTPS handshake to XXXXsearch.search.windows.net (for #435) failed. System.IO.IOException Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. <

Azure Search searching by not full word with special characters is not working

跟風遠走 提交于 2020-02-25 03:23:06
问题 I want to search string which contains special characters using Azure Search .NET SDK. I've tried escaping every special character, tried using full query syntax and tried wildcards, nothing worked as expected. Here is the method: public virtual async Task<SearchResultDto<T>> Search(string query, SearchOptionsInput searchOptionsInput) { if (!_azureOptions.IsEnabled) { return null; } var searchIndexClient = GetSearchIndexClientForGivenType(); var searchParameters = _objectMapper.Map

Azure Search searching by not full word with special characters is not working

那年仲夏 提交于 2020-02-25 03:23:05
问题 I want to search string which contains special characters using Azure Search .NET SDK. I've tried escaping every special character, tried using full query syntax and tried wildcards, nothing worked as expected. Here is the method: public virtual async Task<SearchResultDto<T>> Search(string query, SearchOptionsInput searchOptionsInput) { if (!_azureOptions.IsEnabled) { return null; } var searchIndexClient = GetSearchIndexClientForGivenType(); var searchParameters = _objectMapper.Map

Azure Cognitive Search - How to filter by fields containing special characters

北城余情 提交于 2020-02-08 02:32:06
问题 We are using the Azure Cognitive Search .NET SDK and are trying to $filter by a string field that can contain Search-special characters such as & , as well as single quotes. We get zero results when filtering against a test case with the kitchen sink of special characters (we excluded | since it's our separator for search.in ): { "FirmName": "Crazy Charz Inc. ' + - && ! ( ) { } [ ] ^ \" ~ * ? : \\ /" ... } When we escape the special characters with \ as asked about here and recommended here,

Azure search: Multiple custom attributes of the same type found

和自甴很熟 提交于 2020-01-25 06:52:18
问题 we are facing with a very strange problem with azure search which only happens on our live environment. This is the code var aaa= new SearchServiceClient("name", new SearchCredentials("XXX")); Literally one line of code, directly under Controller, the page breaks with following message: [AmbiguousMatchException: Multiple custom attributes of the same type found.] System.Attribute.GetCustomAttribute(Assembly element, Type attributeType, Boolean inherit) +119 Microsoft.Rest.ServiceClient`1.get

what is the supported Model for multi-level Document search?

喜你入骨 提交于 2020-01-17 13:46:13
问题 I have created few documents in DocumentDb and i am looking for how to search multi-level or parent child objects in single document using Azure search services. can you any one help me out/any links. 回答1: Azure Search requires documents to be flattened, so what you will need to do is create a query in DocumentDB to help you do this. To get started, there is a document here, that will give you some information on how to model these more complex data types in Azure Search. Also, I prefer to do

How do I get french text FEMMES.COM to index as language variants of FEMMES

房东的猫 提交于 2020-01-17 06:53:48
问题 I need FEMMES.COM to get tokenized as singular + plural forms of the base word FEMME. Custom Analyzer Config "analyzers": [ { "@odata.type": "#Microsoft.Azure.Search.CustomAnalyzer", "name": "text_language_search_custom_analyzer", "tokenizer": "text_language_search_custom_analyzer_ms_tokenizer", "tokenFilters": [ "lowercase", "asciifolding" ], "charFilters": [ "html_strip" ] } ], "tokenizers": [ { "@odata.type": "#Microsoft.Azure.Search.MicrosoftLanguageStemmingTokenizer", "name": "text