c# - Does Azure Search result guarantee order for * query? -
i'd manage azsearch documents (indexed items) azsearch c# sdk.
what try list documents query result (mostly * result) continuously , edit values of them.
to list query result below;
public async task<ienumerable<myindexmodel>> getlistasync(string query, bool isnext = false) { if (string.isnullorempty(query)) query = "*"; documentsearchresult list; if (!isnext) { list = await _indexclient.documents.searchasync(query); } else { list = await _indexclient.documents.continuesearchasync(continuationtoken); } continuationtoken = list.continuationtoken; return list.results.select(o => o.document.toindexmodel()); } one requirement jump n-th list of items. since azsearch not provide paging, i'd know whether gives ordered list or not.
if not update document count (not index further), azsearch give unchanged/ordered list can same document jump 80th list running continuesearchasync() method 80 times?
do have maintain lookup table requirement?
* wildcard query. documents matching wildcard query given same constant score in ranking because there's no way measure how close document . further, order between same score document not guaranteed. document matching '' can ranked 1st in 1 response , 7th position in when same query issued.
in order consistent ordering wildcard queries, suggest passing in $orderby clause, search=*&$orderby=id asc example. azure search support paging via $skip , $top. document provides guidance.
Comments
Post a Comment