Re: How further reward documents matching more query terms?

2010-02-03 Thread Ian Lea
If you read the javadocs and source for DefaultSimilarity you'll know as much about it as I do, and see what the default is. To customize it, write your own subclass as I said before. -- Ian. On Tue, Feb 2, 2010 at 7:56 PM, Phan The Dai thienthanhom...@gmail.com wrote: Dear Lan Lea, Thanks

Re: How further reward documents matching more query terms?

2010-02-02 Thread Phan The Dai
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@gmail.com wrote: I presume that quote is from the

How further reward documents matching more query terms?

2010-01-29 Thread Phan The Dai
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

Re: How further reward documents matching more query terms?

2010-01-29 Thread Ian Lea
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