Re: Searcher#setSimilarity clarifications

2009-04-28 Thread Doron Cohen
Searcher is quite light. It is the index reader that is heavier. So create a single index reader, for each of the similarities to be use concurrently, create a searcher over that single reader, set its similarity, and so on. Doron On Mon, Apr 27, 2009 at 7:53 PM, Rakesh Sinha wrote: > I am looki

Searcher#setSimilarity clarifications

2009-04-27 Thread Rakesh Sinha
I am looking into setting custom scoring sing Similarity (org.apache.lucene.search.Similarity) . Searcher has a method to set similarity as follows - searcher.setSimilarity(Similarity) and retrieve the same too. I am looking at a case where I can have just one Searcher instance and use different si