lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William W" <william_...@hotmail.com>
Subject Re: Retrieve all documents from Index, How to?
Date Wed, 27 Mar 2002 17:38:49 GMT

Hi One,
Try to do something like this

doc.add(Field.Text("type","product"));

for all records.

Then.... search for type:product
It will return all the records.
William.


>From: "Tihon One" <tihonone@hotmail.com>
>Reply-To: "Lucene Users List" <lucene-user@jakarta.apache.org>
>To: lucene-user@jakarta.apache.org
>Subject: Retrieve all documents from Index, How to?
>Date: Wed, 27 Mar 2002 16:05:16 +0000
>
>Hi all,
>
>I indexed all records in DataBase.  One of the field in my index stores
>primary key from DataBase (each key is in different document). Is there a
>way that I can retrieve all documents from index ?  I need to validate if
>all records is indexed.
>
>I try search for * but it return empty result.
>
>I'm using StandardAnalyzer with Field.KeyWord for the PrimayKey field and
>everything else is Field.Text
>
>Thanks for your help.
>
>TihonOne
>
>_________________________________________________________________
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>--
>To unsubscribe, e-mail:   
><mailto:lucene-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:lucene-user-help@jakarta.apache.org>
>




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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


Mime
View raw message