Thank you for your response.
There are pre-calculated set of ids related to user.
Based on users' inputs, documents are filtered, then sorted by a numeric field.
First problem is whether those pre-calculated ids would be included in result documents.
Second problem is result documents are fetched with pagination.
To prepare which documents to show, client side should fetch all the result documents (to prevent duplicate results, user related documents should be shown on first page),
check if set of user related ids are contained in results documents, then customize order of documents.
I was wondering if Elasticsearch would be any help to those calculations.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.