Questions tagged [azure-cognitive-search]

Azure Cognitive Search is a fully managed Azure Cloud service that offers rich full-text indexing and search. Allows you to add search facility to both existing and new application either Line of Business application, public facing websites or mobile applications using REST API or .NET SDK.

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

Contains / in array in Azure Search (Preview)

I am using the new (preview) Azure Search SDK (information here). I am using the oData expression syntax to build up my search query using the $filter parameter and I would like to be able to feed across an array of ids to the endpoint. The brandId…
adaam
  • 3,700
  • 7
  • 27
  • 51
7
votes
1 answer

How to group by a field in Azure Search

I need to query an index with paging and the index contains huge amount of documents. The query should also group by one of the fields. Is it possible to group by a field in Azure Search? Thanks!
doorman
  • 15,707
  • 22
  • 80
  • 145
7
votes
1 answer

How is it possible to make a multi-index search using Azure Search API?

How can I made search into multiple index using azure search API? For example: https://{0}/indexes**('Place','vehicle')**/docs?api-version={1}&search={2}&$count=true". Is it possible or not?
Ravi
  • 83
  • 9
6
votes
1 answer

How to mock SearchClient.SearchAsync with the Azure Cognitive Search SDK?

I am trying to unit test code that uses SearchClient.SearchAsync() method. I am using AutoFixture.AutoMoq nuget package. Here is what I tried: mockSearchClient.Setup(msc => msc.SearchAsync( It.IsAny(), …
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
6
votes
1 answer

Search query for empty\null string field in Azure search

Hi I have a string field which can be empty\null for certain documents. I like to know how to search for those documents. I want to know thru searchquery and not ODatFilter as I may like to solve following cases: searching for empty\null in this…
Nats
  • 61
  • 1
  • 5
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 create a field mapping in Azure Search with a complex targetField

I use the Azure Search indexer to index documents from a MongoDB CosmosDB which contains objects with fields named _id. As Azure Search does not allow underscores at the beginning of a field name in the index, I want to create a field mapping.…
Ben Freiberg
  • 343
  • 2
  • 10
6
votes
2 answers

Azure Search Does Not Remove Data After Indexer RUN

I have a file in blob storage folder/new/data1.json. data1 contains json array. [ { "name": "na", "data": { "1":"something1", "2":"something2" } }, { "name": "ha", …
Nafis Islam
  • 1,483
  • 1
  • 14
  • 34
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
6
votes
2 answers

Azure search or full text index?

Data in sql azure, we have an existing webapi expose the data with odata. Issue is client want to make a call with filters with substring query on a few columns, which making performance really slow. we are debating at this point whether to use full…
TOMMY WANG
  • 1,382
  • 3
  • 16
  • 39
6
votes
1 answer

What is this Azure-Search error about "invalid expression" on $filter

When using both C# .NET code to send a query to Azure Search and when using the "Search Explorer" within the Resource-Manager style Azure Portal, Azure search will succeed when given the query (as input in Search…
starlocke
  • 3,407
  • 2
  • 25
  • 38
6
votes
3 answers

Azure Search and Dashes

I am using Azure Search and trying to perform a search against documents: It seems as though doing this: /indexes/blah/docs?api-version=2015-02-28&search=abc\-1003 returns the same results as this:…
caj
  • 63
  • 1
  • 4
6
votes
2 answers

Hit Highlighting in Azure Search Service

I am new to Azure Search Service, and I wanted to use the hit highlighting feature of Azure Search Service. I am using the .NET SDK NuGet package for azure search. I used SearchParameter object to mention the hit highlight fields and also the Pre…
Pratik Bhattacharya
  • 3,596
  • 2
  • 32
  • 60
6
votes
1 answer

Unable to translate bytes [...] at index ... from specified code page to Unicode when adding to index

I am using Newtonsoft.Json to create the JSON to update add items to an index, but I get the following error when I POST the request: {"error":{"code":"","message":"The request is invalid.","innererror":{"message":"parameters : Unable to translate…
mikeyb
  • 401
  • 1
  • 4
  • 11