Re: Scoring by number of terms in field

2006-01-10 Thread Eric Jain
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

Re: Scoring by number of terms in field

2006-01-10 Thread Paul Elschot
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

AW: Scoring by number of terms in field

2006-01-10 Thread Stefan Gusenbauer
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

Re: Scoring by number of terms in field

2006-01-09 Thread Eric Jain
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^

Re: Scoring by number of terms in field

2006-01-09 Thread Erik Hatcher
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

Re: Scoring by number of terms in field

2006-01-09 Thread Paul Elschot
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

Scoring by number of terms in field

2006-01-09 Thread Eric Jain
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