Questions tagged [azure-search-.net-sdk]
260 questions
0
votes
1 answer
GroupBy and Count in Azure Search
I want to migrate a project from Elasticsearch to Azure Cognitive Search, and I can't find a way to do a group + count operation, such as the Elasticsearch client "aggregate" method. What is the correct way to do it in Azure Search? Ofc I can just…

Mikhail
- 759
- 2
- 9
- 26
0
votes
1 answer
azure cognitive search - dynamically adding blobs for azure search rest api
I have multiple containers with blobs(.xlsx format) in it, how can I use one azure search service so that on each rest api call I can get sum of count of a column from each blob or all blobs ...

Arun P
- 110
- 1
- 8
0
votes
1 answer
Perform a like/contains/match operation on a nested array in Azure cognitive search document
I have the below data in the indexed documents
[
{
"HotelId": "1",
"HotelName": "Secret Point Motel",
"Description": "Ideally located on the main commercial artery of the city in the heart of New York.",
"Tags": [
"Free…

llano
- 1
- 1
- 2
0
votes
0 answers
Analyzer to enable search over email fields
I need to make a email field searchable. Let us say I have email in one of the records of the search index - praagarwal@microsoft.com
I should be able to search for this via -
mytestemailid
mytestemailid@domain.com
mytestemailid@domain.com and if…

PRACHI AGARWAL
- 1
- 1
0
votes
2 answers
Only 50 items are displayed when displaying search results with the azure search service
When I get the result of a search I see this
That is, I get 298 results but only 50 values
I use this in my web API
private async Task> RunQueryAsync(SearchData model)
{
InitSearch();
var options = new SearchOptions()
{
…

kintela
- 1,283
- 1
- 14
- 32
0
votes
0 answers
exclusions not working in my azure search service indexer
I have this indexer
Where I want to exclude these extension files but when I use it in my intranet I see this
Any idea, please?
Thanks

kintela
- 1,283
- 1
- 14
- 32
0
votes
1 answer
Azure cognitive search - How to prevent a EdgeNGram tokenizer to not break the words at hyphen?
Here is how I am creating the Azure search index for cosmos db documents with SearchRequest Model (has excluded some fields from SearchRequest Model for brevity).
Please suggest the changes needed in the below implementation to prevent the…

PRACHI AGARWAL
- 1
- 1
0
votes
1 answer
error decoding the fields of a search service index that are decoded in base64
I have this
private string DecodeBase64(string base64Input)
{
try
{
if (string.IsNullOrEmpty(base64Input))
{
return "";
}
byte[] decodedBytes = Convert.FromBase64String(base64Input);
string decodedString =…

kintela
- 1,283
- 1
- 14
- 32
0
votes
1 answer
How to use Azure Cognitive Search to obtain terms from recent and popular searches
We Use Azure Cognitive Search In our E-commerce Application, users can search by product name, category, and code.
Is there Any Way to get all the search history from Azure Cognitive Search?
Is there a way to acquire Azure Cognitive Search's Most…

Ramakrishna.p
- 1,159
- 12
- 31
0
votes
1 answer
Azure Search failed to connect to Azure SQL Database data source
I am trying to import data from a SQL Database into Azure Search, but when attempting to connect to the data source, I receive the following error message: "Failed to fetch". I have confirmed that I can locate the data source in Azure Search and…

Patrick
- 3
- 1
0
votes
2 answers
Azure Search Service unable to map collection of complex objects
I'm using Azure Search .NET SDK to ingest data from Azure SQL Database.
Besides other fields, the database View returns a list of complex objects with the following structure:
[
{
"AttributeId": 133,
"Value": "07.02.2023",
…

Sergiu Molnar
- 865
- 1
- 11
- 22
0
votes
1 answer
Azure Search load only facets list
Currently, I've started to explore Azure Cognitive Search and I'm playing with a sample app.
What I'm trying to find is how to load the list of all facets, but I can't find a way.
Is there a possibility to do this?

Sergiu Molnar
- 865
- 1
- 11
- 22
0
votes
0 answers
Dynamics 365 F&O fails to work with upgrade to new Azure Cognitive Search functionality
We have our own logic written to be able to transfer data to use in Azure Search. Before we were using the Microsoft.Azure.Search dll’s in X++ (F&O) but as these got deprecated, and we need to connect to Government Cloud, we had to do an upgrade…
0
votes
1 answer
When adding document to index and sepcial characters like *, #, @ error
The request is invalid. Details: actions : 0: Invalid document key: 'TESTS123*14'. Keys can only contain letters, digits, underscore (_), dash (-), or equal sign (=). If the keys in your source data contain other characters, we recommend encoding…

Baski
- 191
- 1
- 4
0
votes
0 answers
Xunit & MOq - Unable to setup expectation for IndexDocumentsAsync
I have a method that inserts documents into Azure cognitive search but I am struggling to unit-test the method. My method looks like below:
public async Task AddDocumentIntoIndexAsync(Document[] Documents, string IndexName)
{
…

Tarun Bhatt
- 727
- 2
- 8
- 28