azure-cognitive-search

Using a skillset when adding documents to Azure Search Index

别来无恙 提交于 2021-02-05 11:17:08
问题 I was able to successfully use a skillset (keyword extraction) for a column using an Indexer importing data from a Cosmos DB collection. However I want to eventually use the .NET SDK's DocumentsOperationsExtensions's IndexAsync() method to add documents to the index ( as I already have a change feed listener on the Cosmos DB collection and want to leverage that instead of running a periodic indexer querying Cosmos DB). But I don't see how I can specify the skillset to be used when adding the

Is there a way to exclude NULL values from Azure Cognitive Search Indexes

心不动则不痛 提交于 2021-02-05 08:44:30
问题 So for example we have field 1 up to 10. I want to index all the field in Azure Search, so you can filter, search on those filters. My Question is, is there a way to just exclude the fields that are NULL from a specific ID, so not store them in Azure search? See example underneath. The data itself is initially stored in Azure Cosmos Database. In Azure Cosmos DB it would like this: Id 1 field 1: a field 2: b field 5: c field 6: d field 8: e Id 2 field 3: a field 2: b field 5: c field 9: d

How to do field mapping in azure search for complex json objects for example nested array

喜欢而已 提交于 2021-01-27 15:59:00
问题 I have following problem I have a field mapping update to an index .Payload is complex where I have: { "type": "abc", "Party": [{ "Type": "abc", "Id": "123", "Name": "manasa", "Phone": [{ "Type": "Office", "Number": "12345" }] }] } And now I want to create a field for an index. The field name is phonenumber of type Collection(Edm.String) where mapping is { "sourceFieldName" : "/Party/Phone/Number", "targetFieldName" : "phonenumber", "mappingFunction" : { "name" : "jsonArrayToStringCollection"

using lucene fuzzy search and synonyms with Azure Search

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-27 10:46:14
问题 I want to be able to handle fuzzy search, as well as synonyms at the same time. I tried it in a several ways, but I cannot get it working. I have these values in my index: white black light dark and this synonym rules: white,light black,dark If I perform the query queryType=full&search=light or queryType=full&search=white , it always returns both values, light and white. So synonyms are working. If I perform the query queryType=full&search=light~1 , then only light will be returned. But where

using lucene fuzzy search and synonyms with Azure Search

扶醉桌前 提交于 2021-01-27 10:43:09
问题 I want to be able to handle fuzzy search, as well as synonyms at the same time. I tried it in a several ways, but I cannot get it working. I have these values in my index: white black light dark and this synonym rules: white,light black,dark If I perform the query queryType=full&search=light or queryType=full&search=white , it always returns both values, light and white. So synonyms are working. If I perform the query queryType=full&search=light~1 , then only light will be returned. But where

Get all `Facets` from azure search without item result

北慕城南 提交于 2020-07-19 18:10:33
问题 Hi all I'm facing performance issues with azure cognitive search currently I have 956 Facets filed. When I load Documents from Azure server it's taking almost 30 to 35 seconds. But when I remove Facets from Azure search request Documents load in 2 to 3 seconds. So for this, I have created 2 API's First API load Document result from the azure server. Second API load all Facets from the azure server. Is there any way to load only Facets ? Code get the document from the azure server.

connection issue to azure cognitive search from asp.net mvc website

萝らか妹 提交于 2020-05-24 05:32:11
问题 I have a asp.net mvc website developed in .NET framework 4.7. getting connection issue from hosted website. can you please help An error occurred while sending the request. ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was

azure search work around $skip limit

对着背影说爱祢 提交于 2020-05-23 21:36:10
问题 I'm doing a job to check if all records from my database exists on Azure Search (around 610k). However there's a 100000 limit with the $skip parameter. Is there a way to work around this limit? 回答1: You can not facet over more thank 100K documents, however, you can add facets to work around this. For example, let’s say you have a facet called Country and no one facet has more than 100K documents. You can facet over all documents where Country == ‘Canada’, then facet over all documents where