There is a MatchAllDocsQuery available (in the current development trunk
I believe) in org.apache.lucene.search.
I simply took the source and compiled it along with my project to use
it...

Luc


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chris Hostetter
Sent: donderdag 6 oktober 2005 0:03
To: java-user@lucene.apache.org; Andy Goodell
Subject: Re: Query to return all documents in the index


: 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to