Thanks for the tip. Looks like a neat idea. I have never used the sort feature, so I have to create a new numeric key with values 1 or 2 - value 1 for white_papers/pdfs & 2 for others?
The problem also is that the facets I need to boost can vary by query. That is, if the query term 'a', boost the facets 'facet1 & facet2'. If the query term is 'b', then boost the facets 'facet4 & facet5'. Perhaps I can identify the most freqently used boost order, and create as many fields as there are orders. That would be the way right? - ashok Shalin Shekhar Mangar wrote: > > On Fri, Apr 17, 2009 at 11:32 AM, ashokc <ash...@qualcomm.com> wrote: > >> >> What we need is for the white_papers & pdfs to be boosted, but if and >> only >> if such doucments are valid results to the search term in question. How >> would I write my above 'q' to accomplish that? >> > > Thanks for explaining in detail. > > Basically, all you want to do is sort the results in the following order: > 1. White papers > 2. PDFs > 3. Others > > or maybe #1 and #2 are equivalent and can be intermingled. > > Easiest way to do this is to index a new field whose values (when sorted) > give you the desired order. Then you can simply sort on that field and > score. > > -- > Regards, > Shalin Shekhar Mangar. > > -- View this message in context: http://www.nabble.com/Boosting-by-facets-with-standard-query-tp23084860p23123288.html Sent from the Solr - User mailing list archive at Nabble.com.