Take a look at this: http://issues.apache.org/bugzilla/show_bug.cgi?id=31841
Not my initial patch, but the latest patch from Wolf Siberski. I haven't used it yet, but it looks like what you are looking for, and something I want to use too. Chuck > -----Original Message----- > From: Ken McCracken [mailto:[EMAIL PROTECTED] > Sent: Monday, November 15, 2004 11:31 AM > To: Lucene Users List > Subject: setting Similarity at search time > > Hi, > > Is there a way to set the Similarity at search(...) time, rather than > just setting it on the (Index)Searcher object itself? I'd like to be > able to specify different similarities in different threads searching > concurrently, using the same IndexSearcher instance. > > In my use case, the choice of Similarity is a parameter of the search > request, and hence may be different for each request. > > Can such a method be added to override the search(...) method? > > Thanks, > -Ken > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]