List documents with particular field at specified positions in the result set

Hi All,

I just started using ElasticSearch. It has been fantastic experience. Am facing a particular issue like,

I have a set of documents indexed in Elasticsearch say 100 docs.

Among those 100 i have 5 docs with specific field, which when queried these 5 should come in specific positions like (2,5,7,9).

Any Idea about how to implement.

thanx in advance,
Ram.

Maybe have a look at the function_score query so that you can control how documents get scored based on your business logic. If you cannot use any of the functions, you can use your own script to calculate the score for each document.

thank you javanna, let me try out