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<SearchResults<Oferta>> RunQueryAsync(SearchData model)
{
InitSearch();
var options = new SearchOptions()
{
IncludeTotalCount = true
};
options.HighlightFields.Add("content");
options.HighlightPreTag = "<mark>";
options.HighlightPostTag = "</mark>";
options.Select.Add("metadata_storage_path");
options.Select.Add("content");
model.resultList = await _searchClient.SearchAsync<Oferta>(model.searchText, options).ConfigureAwait(false);
model.resultList.GetResults().ToList().ForEach(r => {
.....
})
return model.resultList;
In the loop I access the 298 returned elements and in all of them I decode the value of Document.metadata_storage_path since it is an index that analyzes files stored in blobs of a storage account, but when returning model.resulList only appears in the first 50 the decoded value in the remainder is still base 64 encoded
Any idea, please?
Thanks


Please add
Sizeto yourSearchOptionsand set its value to a number less than or equal to 1000. Your code would be something like:Sizeparameter maps to$topquery parameter inSearch Documents REST API. If no value is specified for the$topparameter, then 50 documents are returned by default.