lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From saisantoshi <saisantosh...@gmail.com>
Subject RE: IndexSearcher.search(Weight weight, Filter filter, HitCollector results) is not there in 4.0 version
Date Wed, 23 Jan 2013 00:00:34 GMT
Thanks.

Can we use the following method in 4.0 as a replacement for the above
method? However, we will rewrite this to use FilteredQuery later but don't
want to refactor a lot.

public void search(Query query,
          Filter filter,
          Collector results)
            throws IOException

http://lucene.apache.org/core/4_0_0/core/org/apache/lucene/search/IndexSearcher.html#search%28org.apache.lucene.search.Query,%20org.apache.lucene.search.Filter,%20org.apache.lucene.search.Collector%29

In this way, I can pass the native query (instead of the weight) and pass in
the filter and a TopDocsCollector instance.

Thanks,
Sai.



--
View this message in context: http://lucene.472066.n3.nabble.com/IndexSearcher-search-Weight-weight-Filter-filter-HitCollector-results-is-not-there-in-4-0-version-tp4035488p4035490.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

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


Mime
View raw message