You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Alessandro Ferrucci <al...@gmail.com> on 2007/07/24 15:42:42 UTC
boost field without dismax
Hello,
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.
Thanks
alessandro ferrucci =]
Re: boost field without dismax
Posted by Thierry Collogne <th...@gmail.com>.
Here you can find some explanation
http://wiki.apache.org/solr/UpdateXmlMessages
On 25/07/07, Thierry Collogne <th...@gmail.com> wrote:
>
> 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 <br...@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
> >
> > ?
> >
> >
> >
>
Re: boost field without dismax
Posted by Thierry Collogne <th...@gmail.com>.
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 <br...@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
>
> ?
>
>
>
Re: boost field without dismax
Posted by Brian Whitman <br...@variogr.am>.
> 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
?