lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Moffat" <ryanmof...@hotmail.com>
Subject Re: Filtering the entire index
Date Wed, 16 Apr 2003 08:49:32 GMT
Yes, a custom field would be nice hopefully it will be included some day!

Thanks for the reponse!

----- Original Message -----
From: "Kelvin Tan" <kelvin-lists@relevanz.com>
To: "Lucene Users List" <lucene-user@jakarta.apache.org>
Sent: Wednesday, April 16, 2003 3:36 AM
Subject: Re: Filtering the entire index


This workaround is documented in the FAQ. However, I which there was a
constant
in Field.java 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
>>Lucene
>
>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
>
>victor
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: lucene-user-help@jakarta.apache.org





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



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


Mime
View raw message