Re: problem undestanding the hits.score

2007-11-02 Thread Ion Badita
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

Re: RE : Re: problem undestanding the hits.score

2007-11-02 Thread Ion Badita
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

Re: RE : Re: problem undestanding the hits.score

2007-11-02 Thread Ion Badita
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

Unique Fields

2008-03-11 Thread Ion Badita
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

Re: Unique Fields

2008-03-12 Thread Ion Badita
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

Re: Unique Fields

2008-03-13 Thread Ion Badita
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