Hello,

I am trying to query a solr server in order to obtain the most relevant
results for a list of terms.

For example i have the list of words "nokia", "iphone", "charger"

My schema contains the following data:
nokia
iphone
nokia iphone otherwords
nokia white
iphone white

If I run a simple query like q=nokia OR iphone OR charger i get "nokia
iphone otherwords" as the most relevant result (because it contains more
query terms)

I would like to get "nokia" or "iphone" or "iphone white" as first results,
because for each individual term they would be the most relevant.

In order to obtain the correct list i would do a query for each term, then
aggregate the results and order them based on the maximum score.

Can I make this query in one request?

This question has also been asked on

http://stackoverflow.com/questions/5743264/solr-search-based-on-list-of-terms-order-by-maxscore-for-each-term

Thank you.

Reply via email to