Robichaud, Jean-Philippe wrote:
How cool, I did not knew that... that may help me... If I understand you
correctly, I can create a boolean query where each "clause" use a different
similarity ?
Yes. That would look something like:
BooleanQuery booleanQuery = new BooleanQuery();
TermQuery clause1 = new TermQuery("foo", "bar") {
public Similarity getSimilarity(Searcher searcher) {
return new DefaultSimilarity() {
public float idf(Term term) { return 1.0f; }
};
}
};
booleanQuery.add(clause1, true, false);
...
Doug
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]