I presume that quote is from the javadocs for Similarity.

You can write your own Similarity class that extends DefaultSimilarity
and provides an implementation of public float coord(int overlap, int
maxOverlap) that does what you want, maybe by scaling up the value
returned, if I've understood the description properly.

Tell lucene to use your class by calling
Similarity.setDefault(Similarity similarity).

Warning: in my limited experience of trying to tweak lucene's scoring
I almost always make things worse rather than better.  YMMV.  Good
luck.


--
Ian.


On Fri, Jan 29, 2010 at 4:27 PM, Phan The Dai <thienthanhom...@gmail.com> wrote:
> "When searching with a query as a multi term query, users can further reward
> documents matching more query terms through a coordination factor:
> *coord-factor(q,d)
> "
>
> *How we configure this factor?
> I am needing if documents matching more term queries then their score are
> higher.
>
> Please show me more details. Thanks 1
>

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

Reply via email to