Questions tagged [azure-search-.net-sdk]

260 questions
8
votes
2 answers

A task was canceled - what does this mean?

I'm using the Azure Search .Net SDK. I'm calling a synchronous (NOT ASYNC) function like this: var searchResults = searchIndexClient.Documents.Search(searchText, searchParameters); It usually works. I'm not using any async functions, but somehow…
richard
  • 12,263
  • 23
  • 95
  • 151
7
votes
3 answers

How to decode metadata_storage_path produced by Azure Search indexer in .NET Core

Using .NetCore 1.1.2. After successfully getting results from a search via Azure Search SDK, I am trying to decode the metadata_storage_path value. I've seen people saying to use HttpServerUtility.UrlTokenDecode in .NET or an equivalent in other…
6
votes
2 answers

Why would AzureSearch SDK spontaneously fail with transport connection issue?

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…
DeannaD
  • 1,469
  • 2
  • 16
  • 27
6
votes
1 answer

How to filter an array in Azure Search

I have following Data in my Index, { "name" : "The 100", "lists" : [ "2c8540ee-85df-4f1a-b35f-00124e1d3c4a;Bellamy", "2c8540ee-85df-4f1a-b35f-00155c40f11c;Pike", …
TBA
  • 1,077
  • 5
  • 41
  • 80
5
votes
1 answer

What does this Azure Search indexing error mean? "The property 'x' does not exist on type 'search.documentFields'..."

The Exception I am getting is: The property 'documentType' does not exist on type 'search.documentFields'. Make sure to only use property names that are defined by the type. I have googled this and still cannot figure out what is going on. Here is…
Jason H
  • 4,996
  • 6
  • 27
  • 49
5
votes
2 answers

Azure Search .net SDK- How to use "FindFailedActionsToRetry"?

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); …
richard
  • 12,263
  • 23
  • 95
  • 151
4
votes
1 answer

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

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…
4
votes
1 answer

Using Enums in Azure Search Documents

It was my understanding that if you have an enum in a search document, it would be converted to an int. Unless I am doing something wrong, this does not seem to be happening and the only way I can get this to work is by converting the enum to a…
Jason H
  • 4,996
  • 6
  • 27
  • 49
4
votes
2 answers

Azure Search SDK null field not set on Merge action

I'm using Microsoft.Azure.Search version 3.0.1, I'm trying the following: // subset of my index's fields private class SyncFields { public string Id { get; set; } public DateTimeOffset? ApprovedOn { get; set; } public DateTimeOffset?…
Aaron B
  • 859
  • 11
  • 17
4
votes
2 answers

Azure Search RetryPolicy

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
user2981411
  • 859
  • 12
  • 34
3
votes
1 answer

Azure Search N gram Tokenizer Configuration for infix searching

I am currently working with azure search and in order to achieve infix search like searching for 'win' in 'redwine' should find redwine in search results. In azure my configuration for N gram Tokenizer is below "analyzers": [ { …
Rana
  • 135
  • 2
  • 11
3
votes
0 answers

Azure Search Indexer client times out when running Reset operation

I have an Azure SQL indexer with more than 600k rows in the view I need to index. The view takes a couple of minutes to compute initially, which appears to be causing issues with resetting the indexer or changing it's configuration. private readonly…
MarengoHue
  • 1,789
  • 13
  • 34
3
votes
2 answers

Ways to test SearchResults Class in Azure.Search.Documents v11.2.0

I'm trying to find out a way to unit test the search results from the SearchResults Class with different parameters. Compared to DocumentSearchResult Class which was in the previous package Microsoft.Azure.Search.Data v10.1.0, SearchResults
Mezo
  • 85
  • 6
3
votes
1 answer

Events in Azure Search

Is there a way to attach webhooks or get events from Azure Search? Specifically we are looking for way to get notified (programmatically) when an indexer completes indexing an index.
3
votes
1 answer

DotNet Core Azure Search SDK - filtering results

We are trying to implement Filter functionality into Azure (Cognitive) Search. I was hoping to find some nice SDK methods that hide all the ugly parts, but so far the only example I found looks like this (source): SearchParameters parameters = new…
eddyP23
  • 6,420
  • 7
  • 49
  • 87
1
2 3
17 18