only once ranking higher than 100 word documents
with the phrase occuring 10 times.
Many thanks for your help
Leon
- Original Message -
From: "Chris Hostetter" <[EMAIL PROTECTED]>
To: "Lucene Users"
Sent: Friday, March 24, 2006 6:47 PM
Subject: Re: Changing
(NOTE: replying back to java-user, for the reasons listed at
http://people.apache.org/~hossman/#private_q )
: Date: Fri, 24 Mar 2006 08:42:29 -
: Subject: Re: Changing ranking
:
: HI Chris,
: Thanks, so would that make it as simple as a document with 5 matching
: occurences ranks higher than
: Is there anyway I can change luicene to rank longer documents with more
: phrase occurences higher
if what you care about is only the number of occurences, and you don't
want the length to be a factor at all, then using Field.setOmitNorms(true)
on the Field for every document you add will not o
On Mar 23, 2006, at 11:22 AM, Otis Gospodnetic wrote:
The place to start would be to look at the DefaultSimilarity, and
the norms method there. Perhaps you want to create your own
Similarity implementation that returns either a constant 1 or
something else that will favour longer text. S
better or more
precise suggestions.
Otis
- Original Message
From: Leon Chaddock <[EMAIL PROTECTED]>
To: java-user@lucene.apache.org
Sent: Thursday, March 23, 2006 9:43:14 AM
Subject: Changing ranking
Hi,
At present lucene seems to rank very short documents over longer documents
whe
Hi,
At present lucene seems to rank very short documents over longer documents
where the phrase occurs more regularily for instance which the search term
"cat"
"the cat went home"
ranks higher than
"the black cat when home past some other cats, on cat street"
Is there anyway I can change lu