azure-cognitive-search

How to do Azure search for text containing quotes(escape single quote)?

喜欢而已 提交于 2021-02-20 19:34:08
问题 I have a Query for azure search as given below results = indexClient.Documents.Search<Hotel>("", new SearchParameters { IncludeTotalResultCount = true, Filter = "(Provider eq 'Auction.com' or Provider eq 'Zeroiron' or Provider eq 'Gilbert'sYard')" }); the current Query Gives error because as i have given every provider inside quotes , but Gilbert's Yard already have a Quote inside the provider name itself, so to search for same Query with "Gilbert's yard" what change i have to make in the

How to do Azure search for text containing quotes(escape single quote)?

旧时模样 提交于 2021-02-20 19:33:49
问题 I have a Query for azure search as given below results = indexClient.Documents.Search<Hotel>("", new SearchParameters { IncludeTotalResultCount = true, Filter = "(Provider eq 'Auction.com' or Provider eq 'Zeroiron' or Provider eq 'Gilbert'sYard')" }); the current Query Gives error because as i have given every provider inside quotes , but Gilbert's Yard already have a Quote inside the provider name itself, so to search for same Query with "Gilbert's yard" what change i have to make in the

Azure Search - Accent insensitive analyzer not working when sorting

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-19 05:27:37
问题 I'm using Azure Search. I have a model with a property with this attributes [IsRetrievable(true), IsSearchable, IsSortable, Analyzer("standardasciifolding.lucene")] public string Title { get; set; } I want the search to be accent insensitive. Although it is working when searching/filtering, it is not working when sorting the results. So, If I have words that start with an accent and I sort alphabetically, those results appear at the end of the list. 回答1: I verified your use case by creating

Azure Search - Accent insensitive analyzer not working when sorting

吃可爱长大的小学妹 提交于 2021-02-19 05:27:33
问题 I'm using Azure Search. I have a model with a property with this attributes [IsRetrievable(true), IsSearchable, IsSortable, Analyzer("standardasciifolding.lucene")] public string Title { get; set; } I want the search to be accent insensitive. Although it is working when searching/filtering, it is not working when sorting the results. So, If I have words that start with an accent and I sort alphabetically, those results appear at the end of the list. 回答1: I verified your use case by creating

Index a dictionary property in azure search

南楼画角 提交于 2021-02-17 05:46:48
问题 I have a DTO with a property of type Dictionary<string, string> . It's not annotated. When I upload my DTO and call indexClient.Documents.Index(batch) , I get this error back from the service: The request is invalid. Details: parameters : A node of type 'StartObject' was read from the JSON reader when trying to read the contents of the property 'Data'; however, a 'StartArray' node was expected. The only way I've found to avoid it is by setting it to null. This is how I created my index: var

Indexing static HTML blob storage content with Azure Cognitive Search is not working as expected

依然范特西╮ 提交于 2021-02-11 15:12:37
问题 I'm working on indexing static HTML content in blob storage. The documentation states that preprocessing analyzers will strip surrounding HTML tags when indexing content from that data source. However, our content value is always the entire raw HTML document. I'm also unable to pull out the value of our "meta description" tags. According to the documentation on Indexing Blob Storage, HTML content should automatically produce a metadata_description property, but the value is always null. I've

Chinese queries result in unexpectly high recall

陌路散爱 提交于 2021-02-11 12:46:41
问题 We experience unexpectedly high recall for Chinese queries. I have managed to reproduce a minimal use-case using a simple data model with only 2 properties. REPRODUCE Define a property DescriptionZhCn for Chinese product descriptions, using zh-Hans.microsoft analyzer Populate two records with the following values in DescriptionZhCn Contoso 减振接杆 Contoso 缩径接柄 Search using options searchMode=all, queryType=full, searchFields=DescriptionZhCn, api-version=2019-05-06 with the following values in

Chinese queries result in unexpectly high recall

ぃ、小莉子 提交于 2021-02-11 12:45:33
问题 We experience unexpectedly high recall for Chinese queries. I have managed to reproduce a minimal use-case using a simple data model with only 2 properties. REPRODUCE Define a property DescriptionZhCn for Chinese product descriptions, using zh-Hans.microsoft analyzer Populate two records with the following values in DescriptionZhCn Contoso 减振接杆 Contoso 缩径接柄 Search using options searchMode=all, queryType=full, searchFields=DescriptionZhCn, api-version=2019-05-06 with the following values in

Azure Search Indexer cannot retrieve a GeographyPoint filed from a document in DocumentDB

两盒软妹~` 提交于 2021-02-10 05:02:08
问题 I'm having an issue while trying to index a document stored in a DocumentDb collection. The datasource of the indexer was defined with a custom SQL to retrieve the changed documents. The document I want to index has a property called LocationGP which is a Microsoft.Spatial.GeographyPoint, and is mapped to a field of the index with the same name and defined as DataType.GeographyPoint The error I get when trying to create the indexer is: Column 'LocationGP' is of type JObject that is not

Azure Search Indexer cannot retrieve a GeographyPoint filed from a document in DocumentDB

偶尔善良 提交于 2021-02-10 05:01:47
问题 I'm having an issue while trying to index a document stored in a DocumentDb collection. The datasource of the indexer was defined with a custom SQL to retrieve the changed documents. The document I want to index has a property called LocationGP which is a Microsoft.Spatial.GeographyPoint, and is mapped to a field of the index with the same name and defined as DataType.GeographyPoint The error I get when trying to create the indexer is: Column 'LocationGP' is of type JObject that is not