How to achieve a query like this


(Linus Pettersson) #1

Hi

I have a list of documents that I always want on top, after them there should be a list of documents matching a list of tags, then it should just fill the rest with documents ordered by date. I have a hard time achieving this.

For the top documents I add a huge boost (based of ids and types).

I'm not sure how to get the rest though. Any ideas?

Top item#1
Top item#2
Match on tag1, tag2
Match on tag2
No match (ordered by date)
No match (ordered by date)
No match (ordered by date)


(system) #2