Robichaud, Jean-Philippe wrote:
Again, I can change
the similarity of the reader at run-time and issue specific queries, summing
the score myself, but that is pretty inefficient.

You can also specify a Similarity implementation per Query node in a complex query, e.g.:


BooleanQuery query = new BooleanQuery() {
  public Similarity getSimilarity(Searcher searcher) {
    return new DefaultSimilarity {
       ... override Similarity methods here ...
    };
  }
}

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to