You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Andy Goodell <go...@gmail.com> on 2005/10/05 23:26:01 UTC

Query to return all documents in the index

Hi,
In my project we've been using the Searcher.search(query, filter, sort)
method to gather results. But as it turns out, sometimes we just want all of
the documents that match with the filter, sorted by the sort field. Does
anyone know a query that returns all the documents in the index, so that i
could use that in this case?

thanks,
andy g

Re: Query to return all documents in the index

Posted by Chris Hostetter <ho...@fucit.org>.
: method to gather results. But as it turns out, sometimes we just want all of
: the documents that match with the filter, sorted by the sort field. Does
: anyone know a query that returns all the documents in the index, so that i
: could use that in this case?

use a ConstantScoreQuery wrapped arround your filter.  It works with
lucene1.4.3, but requires java1.4 ...

	http://issues.apache.org/jira/browse/LUCENE-383


-Hoss


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