Paul Elschot wrote:
In case you prefer to use the maximum score over the clauses you
can use the DisjunctionMaxQuery from the development version.
Yes, that may help! I'll need to have a look...
-
To unsubscribe, e-mail: [EMAI
On Tuesday 10 January 2006 07:32, Eric Jain wrote:
> Paul Elschot wrote:
> >>For example, a query for "europe" should rank:
> >>
> >>1. title:"Europe"
> >>2. title:"History of Europe"
> >>3. title:"Travel in Europe, Middle East and Africa"
> >>4. subtitle:"Fairy Tales from Europe"
> >
> > Perhaps
e.org
Betreff: Re: Scoring by number of terms in field
Paul Elschot wrote:
>>For example, a query for "europe" should rank:
>>
>>1. title:"Europe"
>>2. title:"History of Europe"
>>3. title:"Travel in Europe, Middle East and Africa
Paul Elschot wrote:
For example, a query for "europe" should rank:
1. title:"Europe"
2. title:"History of Europe"
3. title:"Travel in Europe, Middle East and Africa"
4. subtitle:"Fairy Tales from Europe"
Perhaps with this query (assuming the default implicit OR):
title:europe subtitle:europe^
Sorry for the quick reply, but yes you can accomplish this by
tweaking a custom Similarity implementation (or DefaultSimilarity
subclass). Check out IndexSearcher.explain on a query and a document
and then tinker.
Erik
On Jan 9, 2006, at 4:34 AM, Eric Jain wrote:
Lucene seems to
On Monday 09 January 2006 10:34, Eric Jain wrote:
> Lucene seems to prefer matches in shorter documents. Is it possible to
> influence the scoring mechanism to have matches in shorter fields score
> higher instead?
A query is always in at least one field of a document.
>
> For example, a query
Lucene seems to prefer matches in shorter documents. Is it possible to
influence the scoring mechanism to have matches in shorter fields score
higher instead?
For example, a query for "europe" should rank:
1. title:"Europe"
2. title:"History of Europe"
3. title:"Travel in Europe, Middle East a