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 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^0.5 body:europe

Regards,
Paul Elschot

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to