I already know about this, but I want to give a customized score for all documents in collection, independent if wache document is or isn't relevant to the vector model.
The similarity function is called only when the document is relevant to the vector model. Do you understand me? Thanks! On Sat, Aug 22, 2009 at 2:28 AM, prashant ullegaddi < prashullega...@gmail.com> wrote: > If you want to modify the way Lucene scores documents, I guess you need to > extend Similarity class and provide your own implementation. Take a look > at: > > > http://lucene.apache.org/java/2_4_1/api/org/apache/lucene/search/DefaultSimilarity.html > > http://lucene.apache.org/java/2_4_1/api/org/apache/lucene/search/Similarity.html > > Thanks, > Prashant. > > 2009/8/21 Fabrício Raphael <fabricio...@gmail.com> > > > How to give a customize score for all documents independent of the vector > > model? > > > > I already know how to give a customize score, but I want to give this > > customize score for all documents in the collection, regardless of what > is > > relevant to the vector model. > > > > How to do this? > > > > Now, thanks! > > > > -- > > Fabrício Raphael > > > -- Fabrício Raphael