Hi all I'm facing performance issues with azure cognitive search
currently I have 956
Facets
filed.
When I load Documents
from Azure server it's taking almost 30 to 35 seconds.
But when I remove Facets
from Azure search request Documents
load in 2 to 3 seconds.
So for this, I have created 2 API's
- First API load Document result from the azure server.
- Second API load all
Facets
from the azure server.
Is there any way to load only Facets
?
Code get the document from the azure server.
DocumentSearchResult<AzureSearchItem> results = null;
ISearchFilterResult searchResult = DependencyResolver.Current.GetService<ISearchFilterResult>();
WriteToFile("Initiate request call for search result ProcessAzureSearch {0}");
results = searchServiceClient.Documents.Search<AzureSearchItem>(searchWord, parameters);
WriteToFile("Response received for search result {0}");