Re: Boost documents based on a constant value in a field

2010-02-05 Thread Wangsheng Mei
you would use bq parameter to boost question_source==3 documents first. similar to: http://solr/select?q=your_query&qt=dismax&bq=question_source:3^1000 2010/2/6 Jon Drukman > I have a very simple schema: two integers and two text fields. > > >required="true" /> > >stored="true"/> >

Boost documents based on a constant value in a field

2010-02-05 Thread Jon Drukman
I have a very simple schema: two integers and two text fields. required="true" /> stored="true"/> I want to do full text searching on the text fields as normal. However, I want to boost all documents where question_source == 3 to the top. How do I do that? So the results s