Sort cross document index or document type


#1

Hi all
Can I use painless inline-script to write a function which sort documents by values from another document index or another document types ?
Cause I'm using Elasticsearch to filter/search items. And I want to sort these result items by a ordered data set (dataset A) which contains appx 5000 ~ 10000 items. If the item exists in dataset A, it should be appeared in the top of result, with its ordered.
And cause data set is too big, so I thinks it does not make sense if I pass it as a painless param .
But actually I'm not sure my way is good or speedy...
How do you think ?


(system) #2

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