Try too look at Similarity, there you will find thinks about the
scoring. Your query is more "similar" with the shorter document.
If you have 2 documents with a field body; first with words "red flower"
and the second with just one word "flower", and search for the word
"flower", the second docu
Similarity ?
http://lucene.zones.apache.org:8080/hudson/job/Lucene-Nightly/javadoc/org/apache/lucene/search/Similarity.html
Thanks again
Ion Badita a écrit : Try too look at Similarity, there you will find thinks about the
scoring. Your query is more "similar" with the shorter document.
If
ty in the indexing and the searching, do
you have an example or an url how to set the Similarity ?
http://lucene.zones.apache.org:8080/hudson/job/Lucene-Nightly/javadoc/org/apache/lucene/search/Similarity.html
Thanks again
Ion Badita <[EMAIL PROTECTED]> a écrit : Try too look at Similarity
Hi,
I want to create an index with one unique field.
Before inserting a document i must be sure that "unique field" is unique.
John
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
you really need).
Except, you'll probably also have to keep an internal map of IDs added since
the searcher was opened and check against that too.
Best
Erick
On Tue, Mar 11, 2008 at 11:04 AM, Ion Badita <[EMAIL PROTECTED]>
wrote:
Hi,
I want to create an index with one unique field.
Bef
this field
Or create a hash of the title and index *that* in a separate field and check
against
the hash with termenum/terndocs. Or.
But no, there's no magic that makes Lucene DWIM (Do What I Mean)...
Best
Erick
On Wed, Mar 12, 2008 at 2:01 AM, Ion Badita <[EMAIL PROTECTED]>
w