We suspect the coordination term in driving down these documents' ranks and we would like to bring those documents back up to where they should be.
That sounds right to me.
Is there a relatively easy way to implement what we want using Lucene? Would it be better to try to supply a Similarity class with a
special-purpose coord method [ ... ]
I think this is a good approach.
In 1.4, you can do something like:
public class NoCoordBooleanQuery extends BooleanQuery {
private static final Similarity SIMILARITY = new DefaultSimilarity {
public float coord(int overlap, int max) {
return 1.0f;
}
}; public Similarity getSimilarity(Searcher searcher) {
return SIMILARITY;
}}
Then use this in place of BooleanQuery when you don't want coordination scoring. I think that should do the trick.
Doug
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
