lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kelvin Tan <>
Subject Re: Filtering the entire index
Date Wed, 16 Apr 2003 02:36:54 GMT
This workaround is documented in the FAQ. However, I which there was a constant 
in which does the same thing for me.

So if I want to return all documents, I can search like 

QueryParser.parse(Field.ALL_DOCS, Field.ALL_DOCS, filter)

But obviously something like this is just sugar...

On Wed, 16 Apr 2003 11:19:34 +1100, Victor Hadianto said:
>>I would like to be able to search the entire index and use only the
>You can achieve this by setting a special field in Lucene and set
>the value
>for that field for all your document to say "1".
>When doing the query you can search for this field and the value "1"
>which of
>course will return all documents in your Lucene index. Then the
>filters will
>do their work.
>>Ryan Moffat
>To unsubscribe, e-mail:
>For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message