DECAFFMEYER MATHIEU wrote:
Both are the same document but in different indexes,
the only difference is that the second idnex has more document than the
first one, the first one contains only that page.
I would like to have the same score as in the second index,
Simple speaking, the score depends of the query, the matched document
and the index. The influence of the index is represented by the idf
(inverse document frequency).
Look at:
http://lucene.apache.org/java/docs/scoring.html
http://lucene.apache.org/java/docs/api/org/apache/lucene/search/Similarity.html
If you would like to get a score independent of the index you should
override the idf function by sup-classing the Similarity class
(DefaultSimilarity) and return always 1.
because if
user enters title of document i want it to be 1 score.
The score is not one (0.3764683). If it should to be one you can
normalize the score.
I hope it helps.
Sören
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]