Is it possible to exclude some documents from sorting operation, show specific documents first then sort?
What I want to achieve is supplying set of ids to ES and showing matching documents first and then sort other remaining documents by some other field.
Document A - id: 1, views: 100
Document B - id: 2, views: 120
Document C - id: 3, views: 130
Document D - id: 4, views: 140
With current sorting option (views desc) the result I get is: D, C, B, A
Expected behaviour: Give ids (3, 5, 2), Result should be: C, B, D, A