lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Grand <jpou...@gmail.com>
Subject Re: Index-boosting not working in 5.2.1?
Date Wed, 01 Jul 2015 19:57:13 GMT
What query did you run? Not all queries take index-time boosts into
account for scoring.

On Wed, Jul 1, 2015 at 7:30 PM, Markus Hegi - Nagavkar
<markushegi@gmail.com> wrote:
> Hello
>
> Downloaded & imported latest 5.2.1 version, but Index-scoring seems not to
> work for me:
>
> I index two types of documents:
> - For one, I boost every field with a factor 1
> - For the other one, I boost every field with 0.01
>
> When I search, I get documents of both types, but for ALL document an
> identical score of:
> 1.4142135
>
> What could be the problem?
> Some of my code:
> ...
> FieldType ft=new FieldType();
> ft.setIndexOptions(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS);
> ft.setStored(true);
> ft.setTokenized(true);
>
> Field f=new Field(name, value, ft);
> f.setBoost(0.001f);
> doc.add(f);
> ...
>
> Markus



-- 
Adrien

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


Mime
View raw message