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 <[EMAIL PROTECTED]> 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.

Reply via email to