You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Akos Tajti <ak...@gmail.com> on 2011/02/17 08:56:39 UTC

Boost value is always 1

I'm trying to set different boost values for different fields. Before adding
the document to the index every value is fine. But when I run a search in
the explanation every boost is 1 and the final score of the matches is not
affected by the boost values set. I set omitNorms to false and index to
ANALYZED. The only solution I found is setting store to YES. Do you have any
ideas?

Thanks in advance,
Ákos Tajti

Re: Boost value is always 1

Posted by Ian Lea <ia...@gmail.com>.
Try different boost values with larger gaps between low and high.  If
that doesn't help, post a tiny but complete self-contained example
that demonstrates the problem.  And you should always say what version
of lucene you are using.


--
Ian.


On Thu, Feb 17, 2011 at 7:56 AM, Akos Tajti <ak...@gmail.com> wrote:
> I'm trying to set different boost values for different fields. Before adding
> the document to the index every value is fine. But when I run a search in
> the explanation every boost is 1 and the final score of the matches is not
> affected by the boost values set. I set omitNorms to false and index to
> ANALYZED. The only solution I found is setting store to YES. Do you have any
> ideas?
>
> Thanks in advance,
> Ákos Tajti
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org