Questions tagged [azure-search-.net-sdk]
260 questions
1
vote
1 answer
I want to perform time range search on date range in azure search
I want to perform time range search in azure indexing search,date range search is already working fine. but now i want to search records for example
DateTimeFrom : 09/01/2018 09:00 AM
DateTimeTo : 09/30/2018 05:00 PM
I am passing dates from…

Faseeh Haris
- 669
- 1
- 11
- 29
1
vote
1 answer
Index movie duration
I'm trying to figure out how I'm intended to store my movies duration field (e.g. 02:20:13 for a movie that is 2 hrs, 20min, and 13 sec long) so that users searching the index can facet on movie duration.
Like in the facet they can select from…

Magnus Karlsson
- 3,549
- 3
- 31
- 57
1
vote
1 answer
Azure Search Suggester with DataType.Complex and its subfields
I am new to Azure Search. I have been trying to create a new index which includes DataType.Complex for one of the fields. Microsoft provides an example of how to create a new index with DataType.Complex, but for the suggester.
Here is the REQUEST…

Kyle Ahn
- 39
- 4
1
vote
1 answer
How to index a field with alphanumeric characters AND a dash for wildcard search
Given a model that looks like this:
{
[Key]
public string Id { get; set; }
[IsSearchable]
[Analyzer(AnalyzerName.AsString.Keyword)]
public string AccountId { get; set; }
}
And sample data for the AccountId that would look like…

Steven Creaney
- 45
- 7
1
vote
0 answers
Search a field with special character .net sdk version 5.0.3
Hi I am trying to perform a search in azure using .net sdk. the field that i am searching contains '/' character. However whatever I do the search result always comes up empty. I have tried with HttpUtility.UrlEncode but it is still not working.…

imran chowdhury
- 331
- 1
- 5
- 18
1
vote
2 answers
How to add Primary key of Azure Cosmos DB as search parameter in Azure search Service
I am using Azure search service to search for the documents in my Azure CosmosDB Account.
Using the portal, I have created an Azure search service and given my existing CosmosDB as data source.
Following is the sample document stored in CosmosDB
{
…

code-geek
- 441
- 1
- 8
- 22
1
vote
1 answer
Is there any default timestamp that gets updated when a document gets added/updated to the search index?
I know there is a _ts (Timestamp) property in Azure Cosmos Db that gets updated on any document insert/update.
Is there anything similar for documents in Azure Search Index?
(or)
Should we do have our own timestamp property?

Vignesh T
- 237
- 1
- 2
- 11
1
vote
1 answer
How to pass SP in Azure Search Data Source
I have 2 documents in a partition of document db. How can I combine these 2 documents and prepare one document which I can send as a Data Source for Azure Search Service.
I found a way by stored procedure we can combine 2 documents. Now I am facing…

zile
- 109
- 11
1
vote
2 answers
Azure Search .NET SDK: SearchIndexClient & Dependency Injection
What's the recommended way to register a SearchIndexClient into DI container? (let's say we only have a single index)
Register it as singleton or transient?

Mathias
- 11
- 2
1
vote
1 answer
Azure Search Service search integers
Providing you have a simple index:
public partial class SomeIndex
{
[Key]
[IsFilterable]
public string Id{ get; set; }
[IsSearchable, IsFilterable, IsSortable]
public string Name{ get; set; }
[IsFilterable, IsSortable]
…

tom33pr
- 853
- 2
- 12
- 30
1
vote
2 answers
azure search - filter key value pair concatenated by double pipes
I have a EDM.string field that I use to store Key Value pairs separated by '||' and commas. For example:
{
"CustomField": "1234|||student, 5678||blue, 999||metallica, etc..."
}
I need to perform a query to extract a key-value combination. For…

Thiago Custodio
- 17,332
- 6
- 45
- 90
1
vote
1 answer
Can we do document to documents search using Azure Search?
I have a blob storage where i have list of word documents in it. I want search a word document againest to blob storage and find matched documents. Can i use Azure Search for this? How can i implement this?

Naveen Katakam
- 400
- 1
- 8
- 23
1
vote
1 answer
Azure Search SKD "startswith"
I am using the Azure Search SDK.
One of my fields is a urlpath field, for example "/parentlevel/sublevel/child"
I have the need to do a search and filter on all pages that are at the sublevel or lower.
Somehow I need to do a search that returns…

Dukebaby
- 204
- 4
- 13
1
vote
1 answer
How to define CustomAnalyzer through C# code when creating Azure Search Index
I saw the note from here: https://learn.microsoft.com/en-us/rest/api/searchservice/custom-analyzers-in-azure-search
that: Custom analyzers that you create are not exposed in the Azure portal. The only way to add a custom analyzer is through code…

Mike
- 205
- 2
- 10
1
vote
2 answers
Query / Filter Azure Search Edm.Collection by any of multiple strings
I'm trying to filter an azure search edm.collection to return results if any of multiple strings are in the collection. I can only get it working when querying for one item, which isn't good enough for my use case. I can't find syntax for querying…

Pete Herc
- 163
- 10