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 Luca Molteni <vo...@gmail.com> on 2008/09/15 10:55:37 UTC

Searching for Index-Time Boosting in FAQ

Hello, dear Solr Users,

I'm starting to learn Solr and Lucene, since I want to use this technology
in my project, but I found some trouble in the "index-time boosting" section
of the documentation, I'm probably missing something, but since I can't
figure out all by myself, I decided to wrote here.

For example, in the scoring faq:

http://wiki.apache.org/solr/SolrRelevancyFAQ

There are references to and "index-time boosting" options for fields, but I
haven't found anything neither in the field configuration section of the
wiki nor in the schema.xml file.

>From what I've understand, these are the attributes for fields:

name, indexed, stored, compressed, multiValued, omitNorms, termVectors

But none of these solved my problem.

At the end of the scoring FAQ there is this note:

   -

   when should index-time boosts be used


I'd like to see "how" index-time boosts should be used, please,

Thank you very much,

Bye.

L.M.

Re: Searching for Index-Time Boosting in FAQ

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
Please go ahead :-)

On Mon, Sep 15, 2008 at 3:04 PM, Luca Molteni <vo...@gmail.com> wrote:

> Now that's clear!
>
> Since it's and Index-time boost, it was in the indexing documents section.
> I
> should have checked for that. Would you mind if I dare to update the
> scoring
> FAQ with the link to this page?
>
> "To increase the scores for certain documents that match a query,
> regardless
> of what that query may be, one can use index-time boosts.
>
> Index-time boosts can be specified per-field also, so only queries matching
> on that specific field will get the extra boost. An Index-time boost on a
> value of a multiValued field applies to all values for that field."
>
> "Index-time boosts are assigned with the optional attribute "boost" in the
> <doc> section of the XML updating messages - LINK TO PAGE".
> L.M.
>
>
> 2008/9/15 Shalin Shekhar Mangar <sh...@gmail.com>
>
> > You can specify a boost while indexing by adding a 'boost' attribute to
> the
> > field tag in the XML.
> >
> > For example:
> > <add>
> >  <doc>
> >    <field name="xyz" boost="2.0">value</field>
> >  </doc>
> > </add>
> >
> > In the same manner, boost can also be specified on the document tag to
> > boost
> > the score for the whole document.
> >
> > This information is not very prominent in the wiki but some documentation
> > is
> > at http://wiki.apache.org/solr/UpdateXmlMessages
> >
> > On Mon, Sep 15, 2008 at 2:25 PM, Luca Molteni <vo...@gmail.com>
> wrote:
> >
> > > Hello, dear Solr Users,
> > >
> > > I'm starting to learn Solr and Lucene, since I want to use this
> > technology
> > > in my project, but I found some trouble in the "index-time boosting"
> > > section
> > > of the documentation, I'm probably missing something, but since I can't
> > > figure out all by myself, I decided to wrote here.
> > >
> > > For example, in the scoring faq:
> > >
> > > http://wiki.apache.org/solr/SolrRelevancyFAQ
> > >
> > > There are references to and "index-time boosting" options for fields,
> but
> > I
> > > haven't found anything neither in the field configuration section of
> the
> > > wiki nor in the schema.xml file.
> > >
> > > From what I've understand, these are the attributes for fields:
> > >
> > > name, indexed, stored, compressed, multiValued, omitNorms, termVectors
> > >
> > > But none of these solved my problem.
> > >
> > > At the end of the scoring FAQ there is this note:
> > >
> > >   -
> > >
> > >   when should index-time boosts be used
> > >
> > >
> > > I'd like to see "how" index-time boosts should be used, please,
> > >
> > > Thank you very much,
> > >
> > > Bye.
> > >
> > > L.M.
> > >
> >
> >
> >
> > --
> > Regards,
> > Shalin Shekhar Mangar.
> >
>



-- 
Regards,
Shalin Shekhar Mangar.

Re: Searching for Index-Time Boosting in FAQ

Posted by Luca Molteni <vo...@gmail.com>.
Now that's clear!

Since it's and Index-time boost, it was in the indexing documents section. I
should have checked for that. Would you mind if I dare to update the scoring
FAQ with the link to this page?

"To increase the scores for certain documents that match a query, regardless
of what that query may be, one can use index-time boosts.

Index-time boosts can be specified per-field also, so only queries matching
on that specific field will get the extra boost. An Index-time boost on a
value of a multiValued field applies to all values for that field."

"Index-time boosts are assigned with the optional attribute "boost" in the
<doc> section of the XML updating messages - LINK TO PAGE".
L.M.


2008/9/15 Shalin Shekhar Mangar <sh...@gmail.com>

> You can specify a boost while indexing by adding a 'boost' attribute to the
> field tag in the XML.
>
> For example:
> <add>
>  <doc>
>    <field name="xyz" boost="2.0">value</field>
>  </doc>
> </add>
>
> In the same manner, boost can also be specified on the document tag to
> boost
> the score for the whole document.
>
> This information is not very prominent in the wiki but some documentation
> is
> at http://wiki.apache.org/solr/UpdateXmlMessages
>
> On Mon, Sep 15, 2008 at 2:25 PM, Luca Molteni <vo...@gmail.com> wrote:
>
> > Hello, dear Solr Users,
> >
> > I'm starting to learn Solr and Lucene, since I want to use this
> technology
> > in my project, but I found some trouble in the "index-time boosting"
> > section
> > of the documentation, I'm probably missing something, but since I can't
> > figure out all by myself, I decided to wrote here.
> >
> > For example, in the scoring faq:
> >
> > http://wiki.apache.org/solr/SolrRelevancyFAQ
> >
> > There are references to and "index-time boosting" options for fields, but
> I
> > haven't found anything neither in the field configuration section of the
> > wiki nor in the schema.xml file.
> >
> > From what I've understand, these are the attributes for fields:
> >
> > name, indexed, stored, compressed, multiValued, omitNorms, termVectors
> >
> > But none of these solved my problem.
> >
> > At the end of the scoring FAQ there is this note:
> >
> >   -
> >
> >   when should index-time boosts be used
> >
> >
> > I'd like to see "how" index-time boosts should be used, please,
> >
> > Thank you very much,
> >
> > Bye.
> >
> > L.M.
> >
>
>
>
> --
> Regards,
> Shalin Shekhar Mangar.
>

Re: Searching for Index-Time Boosting in FAQ

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
You can specify a boost while indexing by adding a 'boost' attribute to the
field tag in the XML.

For example:
<add>
  <doc>
    <field name="xyz" boost="2.0">value</field>
  </doc>
</add>

In the same manner, boost can also be specified on the document tag to boost
the score for the whole document.

This information is not very prominent in the wiki but some documentation is
at http://wiki.apache.org/solr/UpdateXmlMessages

On Mon, Sep 15, 2008 at 2:25 PM, Luca Molteni <vo...@gmail.com> wrote:

> Hello, dear Solr Users,
>
> I'm starting to learn Solr and Lucene, since I want to use this technology
> in my project, but I found some trouble in the "index-time boosting"
> section
> of the documentation, I'm probably missing something, but since I can't
> figure out all by myself, I decided to wrote here.
>
> For example, in the scoring faq:
>
> http://wiki.apache.org/solr/SolrRelevancyFAQ
>
> There are references to and "index-time boosting" options for fields, but I
> haven't found anything neither in the field configuration section of the
> wiki nor in the schema.xml file.
>
> From what I've understand, these are the attributes for fields:
>
> name, indexed, stored, compressed, multiValued, omitNorms, termVectors
>
> But none of these solved my problem.
>
> At the end of the scoring FAQ there is this note:
>
>   -
>
>   when should index-time boosts be used
>
>
> I'd like to see "how" index-time boosts should be used, please,
>
> Thank you very much,
>
> Bye.
>
> L.M.
>



-- 
Regards,
Shalin Shekhar Mangar.