lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thierry Collogne" <thierry.collo...@gmail.com>
Subject Re: boost field without dismax
Date Wed, 25 Jul 2007 06:27:09 GMT
U can also add the boosting to the field at indextime.

For example

<field name="lastname" boost="3.0">foobar</field>

And then u can do the query

firstname:foobar OR lastname:foobar

The above query will then boost the documents where foobar is in the
lastname

Hope this helps,

Thierry

On 24/07/07, Brian Whitman <brian.whitman@variogr.am> wrote:
>
> >  Jul 24, 2007, at 9:42 AM, Alessandro Ferrucci wrote:
> >> is there a way to boost a field much like is done in dismax request
> >> handler?  I've tried doing index-time boosting by providing the
> >> boost to the
> >> field as an attribute in the add doc but that did nothing to
> >> affect the
> >> score when I went to search.  I do not want to use dismax since I
> >> also want
> >> wildcard patterns supported.  What I'd like to do is provide
> >> boosting of a
> >> last-name field when I do a search.
>
> something not like: firstname:alessandro lastname:ferrucci^5
>
> ?
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message