Best practice to paginate full text search queries

Hello,

I would like to know what are best practices (what to use) for full text search pagination. I.e. sorting by relevance.
As I understand it is impossible to use search_after parameter to paginate results based on relevance (or am I wrong?).
If so, how is it better to paginate such queries? Scroll API? Offset parameter? Another technique?
Any advice is appreciated.

Best regards,
Alexandr

I was wrong. It is possible to sort results by _score and then use it in search_after.
I solved my issue by using something like this:

    "sort":[
    	{"_score": "asc"},
    	{"_uid": "asc"}
    ],
    "search_after": [1.2289224, "type1#KYb9FGUBhsARc5Y5st_n"]

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.