The problem with what you provided is it is boosting ALL documents whether
the field is empty or not....

On Tue, May 15, 2012 at 3:52 AM, Ahmet Arslan <iori...@yahoo.com> wrote:

> > Basically I want documents that have a given field populated
> > to have a
> > higher score than the documents that dont.  So if you
> > search for foo I want
> > documents that contain foo, but i want the documents that
> > have field a
> > populated to have a higher score...
>
>
> Hi Donald,
>
> Since you are using edismax, it is better to use bq (boosting query) for
> this.
>
> bq=reqularprice:[* TO *]^50
>
> http://wiki.apache.org/solr/DisMaxQParserPlugin#bq_.28Boost_Query.29
>
> defType=edismax&qf=nameSuggest^10 name^10 codeTXT^2 description^1
> brand_search^0 cat_search^10&q=chairs&bq=reqularprice:[* TO *]^50
>
>

Reply via email to