Re: Using alternative scoring mechanism.

2012-12-02 Thread Jack Krupansky
I thought it was that simple too, but I couldn't find the "get/setSimilarityProvider" methods listed in that patch, and no mention in the Similarity class. Obviously this feature has morphed a bit since then. To cut to the chase, you still use the old methods for setting the similarity class (I

Re: Using alternative scoring mechanism.

2012-12-02 Thread Erick Erickson
I think you're looking for per-field similiarity, does this help? https://issues.apache.org/jira/browse/LUCENE-2236 Note, in 4.0 only Best Erick On Sat, Dec 1, 2012 at 1:43 PM, Eyal Ben Meir wrote: > Can one replace the basic scoring algorithm (TF/IDF) for a specific field, > to use a differe

Re: sort by field and score

2012-12-02 Thread Andy Yu
CustomComparatorSource is a class which extends FieldComparatorSource I just want to custom the sort and add some business logic into the comparator actually my desirable situation is firt sort by CustomComparatorSource and then sort by the score thanks man 2012/11/30 Ian Lea > Using a TopFie