lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phan The Dai <thienthanhom...@gmail.com>
Subject Re: How further reward documents matching more query terms?
Date Tue, 02 Feb 2010 19:56:44 GMT
Dear Lan Lea,
Thanks much for your reply.
Please tell me more details of coord.
what is its default?
how to customize it, why we have to define.

Thank you much for understading my question.

On Sat, Jan 30, 2010 at 2:46 AM, Ian Lea <ian.lea@gmail.com> wrote:

> 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 <thienthanhomenh@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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message