azure-cognitive-search

Creating Collection in Azure Search Service using Indexer

纵饮孤独 提交于 2019-12-08 02:41:47
问题 I am using indexer to sync data from my SQL Database to Azure Search Service. I have a field in my SQL View, which contains XML data. The Column contains a list of string. The corresponding field in my Azure Search Service Index in a Collection(Edm.String). On checking some documentations, I found that Indexer does not change Xml(SQL) to Collection(Azure Search). Is there any workaround as to how I can get create the Collection from the Xml data? p.s I am extracting the data from a View, so I

Search using StartsWith in Azure Search

瘦欲@ 提交于 2019-12-08 00:13:41
问题 I have scenario where I have to search the Vendors using Vendor Names using Azure Search. For Example Below is the List Of Vendors. Infosys Technologies Limited Infosys BPM Limited Infor Solution Infosys Corporate Technologies Dell Computers First Infosystems My Search Scenario is when Searchtext is Info it should return 1,2,3,4 when Searchtext is Infosys it should return 1,2,4 when Searchtext is Infosys Tech it should return only 1 not 4 I also tried keyword analyzer on Vendor Name Field and

How can I use AzureSearch with wildcard

馋奶兔 提交于 2019-12-07 23:06:55
问题 I want to search for a field that has the name "14009-00080300", and I want to get a hit when searching only on a part of that, for example "14009-000803". Using this code I dont get any hits: { "search": "\"14009-000803\"*", "count":true, "top":10 } Is there a way to use azure search like SQL uses its wildcard search? (select * from table where col like '%abc%' ? 回答1: You can get your desired result by performing a full query with Lucene syntax (as noted by Sumanth BM). The trick is to do a

Full text indexing on large files (more than 32k)

风流意气都作罢 提交于 2019-12-06 12:39:01
问题 Is it possible to use Azure Search on blobs over 32kB size? I have around 500GB of text files stored as blobs on Azure. Average blob size is around 1MB. I was so exited to try Azure Search to have full text search on files. However, it looks like index field Edm.String cannot be more than 32kB. I couldn't find this exact limit anywhere, I extracted this information from error message in the portal. Is there any out of the box solution on Azure that I can use to add full text search

Right after uploading a document on Azure Search, can I delete it?

℡╲_俬逩灬. 提交于 2019-12-06 11:32:43
1) Suppose I use the Azure Search API to upload a new document: POST /indexes/[index name]/docs/index?api-version=[api-version] 2) I get a response with an HTTP code 201 (document was successfully created) 3) I use the API again to DELETE to newly uploaded document Can I be 100% sure that the document will be eventually deleted? Or will it fail if the indexing process has not complete? I work on the Azure Search team. Once you get a success code (HTTP 201) from the indexing API it implies that the document has been indexed successfully . This means that the document exists in the internal data

Search using StartsWith in Azure Search

半城伤御伤魂 提交于 2019-12-06 10:29:18
I have scenario where I have to search the Vendors using Vendor Names using Azure Search. For Example Below is the List Of Vendors. Infosys Technologies Limited Infosys BPM Limited Infor Solution Infosys Corporate Technologies Dell Computers First Infosystems My Search Scenario is when Searchtext is Info it should return 1,2,3,4 when Searchtext is Infosys it should return 1,2,4 when Searchtext is Infosys Tech it should return only 1 not 4 I also tried keyword analyzer on Vendor Name Field and it also does not give the result I expected. Basically I want the searchtext to search from start of

Azure Search RetryPolicy

空扰寡人 提交于 2019-12-06 07:55:17
问题 We are using azure search and need to implement a retry stratgey as well as storing the Ids of failed documents as described. Is there any documentation/samples on how to implement a RetryPolicy strategy in Azure Search. Thanks 回答1: This is what I used: private async Task<DocumentIndexResult> IndexWithExponentialBackoffAsync(IndexBatch<IndexModel> indexBatch) { return await Policy .Handle<IndexBatchException>() .WaitAndRetryAsync(5, retryAttempt => TimeSpan.FromSeconds(Math.Pow(2,

How can I use AzureSearch with wildcard

时间秒杀一切 提交于 2019-12-06 07:01:11
I want to search for a field that has the name "14009-00080300", and I want to get a hit when searching only on a part of that, for example "14009-000803". Using this code I dont get any hits: { "search": "\"14009-000803\"*", "count":true, "top":10 } Is there a way to use azure search like SQL uses its wildcard search? (select * from table where col like '%abc%' ? You can get your desired result by performing a full query with Lucene syntax (as noted by Sumanth BM). The trick is to do a regex search. Modify your query params like so: { "queryType": "full", "search": "/.*searchterm.*/", "count"

Creating Collection in Azure Search Service using Indexer

北城以北 提交于 2019-12-06 07:01:05
I am using indexer to sync data from my SQL Database to Azure Search Service. I have a field in my SQL View, which contains XML data. The Column contains a list of string. The corresponding field in my Azure Search Service Index in a Collection(Edm.String). On checking some documentations, I found that Indexer does not change Xml(SQL) to Collection(Azure Search). Is there any workaround as to how I can get create the Collection from the Xml data? p.s I am extracting the data from a View, so I can change the Xml to JSON if needed. UPDATE on October 17, 2016: Azure Search now automatically

Fuzzy Search in the Search API

好久不见. 提交于 2019-12-05 01:47:30
问题 The Azure search api offers a fuzzy paramter for suggestions. like this: https://blssuggestions.search.windows.net/indexes/cities/docs/suggest?api-version=2015-02-28&suggesterName=default&fuzzy=true&search=berlen Would return "Berlin" as a result of berlen. I can't find a documentation about this how to activate it in a normal search setting there fuzzy = true seems to not change anything https://blssuggestions.search.windows.net/indexes/cities/docs?api-version=2015-02-28&search=berlen&fuzzy