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

260 questions
3
votes
1 answer

how to use azure cognitive search from a sharepoint online SPFx webpart

I haven't had much contact with SPFx lately, so I guess I need to study a bit, :) I want to use this NPM package here: https://www.npmjs.com/package/azure-search Into a basic new SPFx web part: The code is like this: export default class…
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
3
votes
1 answer

Azure Search Merge Index Operation Returns Exception

I'm trying to run a batch operation to merge some changes to an existing Azure Search Index, but I keep running into this error: {Microsoft.Rest.Azure.CloudException: The request is invalid. Details: parameters : Object reference not set to an…
3
votes
1 answer

Synonym Maps in Azure Search, synonym phrases

I'm trying to use synonym maps in Azure Search and i'm running into a problem. I want to have several words and phrases map into a single search query. In other words, when i search for either: product 123, product0123, product 0123 i want the…
3
votes
1 answer

NullReferenceException when checking if index exists with Azure Search for .NET?

When trying to see if an index exists for a non-existing index with the .NET SDK (both 3.0.4 and 4.0.0-preview) the ExistsAsync (as well as Exists, and ExistsWithHttpMessagesAsync) throws the following exception. System.NullReferenceException:…
Jonas Stensved
  • 14,378
  • 5
  • 51
  • 80
3
votes
2 answers

Azure Search .Net SDK - What's the recommended way to combine results of type DocumentSearchResult after calling ContinueSearch?

Azure Search .Net SDK potentially does not return all requested results to a request. In this case it will return a ContinuationToken as part of the result (DocumentSearchResult). From here: If Azure Search can't include all results in a single…
richard
  • 12,263
  • 23
  • 95
  • 151
3
votes
3 answers

How to wait for Azure Search to finish indexing document? For integration testing purpose

Scenario I'm building a suite of automated integration tests. Each test push data into the Azure Search index before querying it and verifying the expected results. Problem The indexation happens asynchronously in the service and data aren't…
2
votes
1 answer

How can we initialize DataChangeDetectionPolicy using .netsdk?

I have created a new index that is populated using an indexer. The indexer's datasource is a SQL view that has a Timestamp column of type datetime. Since we don't want a full reindexing each time the indexer runs, this column should be used to…
2
votes
1 answer

Azure Cognitive Search: Facet "values" for DateTime field

I think I'm not understanding to do what I want. I want to offer a list of facets that look like this: Created Today (123) Created in the last week (3,455) Created in the last month (12,234) Created in the last year (112,234) The documents say…
kevin
  • 417
  • 4
  • 20
2
votes
1 answer

An existing connection was forcibly closed by the remote host using Azure Cognitive Search on Windows Server 2008 SP2

We have a site that retrieves products from Azure Cognitive Search. On Wednesday, February 26, 2020 at around 2pm EST we suddenly started seeing the following errors: [SocketException (0x2746): An existing connection was forcibly closed by the…
2
votes
1 answer

Azure search using just special characters in search returns no results

we are using azure search API but are getting no results for special characters that contain no alphanumeric characters. We was having trouble returned any matching results for Japanese language and any special characters at all until we wrapped the…
2
votes
1 answer

SQL-like injection in filters

I'm building this method which allows to build SearchParameters object. One of methods allows to specify Filter field of this object. It looks like this (simplified version) public SearchParameters CreateWithFilter(string fieldName, string operator,…
Tomasz Madeyski
  • 10,742
  • 3
  • 50
  • 62
2
votes
1 answer

Azure Search vs Elastic Search

I have a scenario where a customer decided to use Elastic Search instead of Azure Search, mainly due to challenges with how Azure Search was scoring and a lack of customizability with plugins. I'm looking for guidance on the following to see if…
2
votes
1 answer

Index a dictionary property in azure search

I have a DTO with a property of type Dictionary. 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…
sirdank
  • 3,351
  • 3
  • 25
  • 58
2
votes
1 answer

Why does azure search throw IndexBatchException with no failures in IndexingResults

In my microservice (responsible for feeding data into azure search instance based on events messages), I am trying to MergeOrUpload an IndexBatch. The batch size is always 1 as one event message only contain one entity that I need to merge or upload…
2
votes
2 answers

Upgrading Azure Search SDK from v.5.0.3 to v.9. Search call hangs

After upgrading the .net Azure Search SDK to version 9, I am unable to search. The call just hangs on: azureSearchIndexClient.Documents.Search(query, parameters); I don't receive an error, everything was working on 5.0.3, I can still create,…
Ryan
  • 45
  • 5
1
2
3
17 18