lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: my question about lucene
Date Thu, 10 Nov 2011 12:23:46 GMT
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 强继朋 <qjp2100@163.com>:
> 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 construct a new formula, which aren't provided by Formula. Finally, i sort
the score by the new formula, and get the search's result.  what should i do?  Thank you
!
>                                                          
                                                           
                              Student :Qiang JIpeng
>                                                          
                                                           
                                2011.11.09
Mime
View raw message