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 similarities for different
queries (since searcher is multi-threaded ).

results = searcher.search( similarity, "myfield:mysearchstring" );

and be ensured that the right similarity is applied for the right
fields to be searched for.  Right now - it would go along the lines of
searcher.setSimilarity(Similarity)  and then followed by the
searcher.search ( .. ) so I cannot do concurrent searches (unless they
are on different searcher instances altogether). Any suggestions
regarding this ? Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to