I have the following query to be performed in SOLR 4.7
query=yellow tree house
And doc1 and doc2 are as follows
doc1=house house house house house
doc2=yellow tree
On the default SOLR implementation doc1 will be ranked the first since the term house is repeated many times and its tfidf will be higher.
On the other hand I need that doc2 will be ranked as the first result instead of doc1 since the co-occurence of at least two query terms among three is better than one term appearing many times.
How can I tune SOLR to perform it? Can BM25 be a solution to that problem?