Re: my question about lucene

2011-11-10 Thread Ian Lea
You can provide your own Similarity implementation, overriding whichever of the methods you need in order to achieve your aims. Use it via the setxxx methods mentioned in the javadocs and unless you deliberately sort by some other field everything should fall into place. -- Ian. 2011/11/9 强继朋

my question about lucene

2011-11-09 Thread 强继朋
lucene, I hava a problem i don't know how to do, it's about Score Formula of lucene. In the package of lucene, it provide a method in Class Similarity. My question : if i want to only use some factors of Formula, such as TF and IDF. And then i add some additional factors, in aim to