On Dec 9, 2004, at 1:35 PM, Ravi wrote:
Is there any other way to extract all documents from an index apart
from adding an additional field with the same value to all documents
and
then doing a term query on that field with the common value?
Of course. Have a look at the IndexReader API.
I was looking for a query that returns me all documents in
the index and then I want to apply the date filter on it.
-Original Message-
From: Erik Hatcher [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 09, 2004 1:55 PM
To: Lucene Users List
Subject: Re: Retrieving all docs
: Retrieving all docs in the index
I'm sorry I don't think I articulated my question well. We use a date filter
to sort the search results. This works fine when te user provides some
search criteria. But if he gives an empty search criteria, we need to return
all the documents in the index in the given
of the primary
key field can serve as the constant value.
Regards,
Paul Elschot
-Original Message-
From: Aviran [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 09, 2004 2:08 PM
To: 'Lucene Users List'
Subject: RE: Retrieving all docs in the index
In this case you'll have to add
Thanks Paul. I think I'll go with the first approach (adding a new
field).
-Original Message-
From: Paul Elschot [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 09, 2004 3:49 PM
To: [EMAIL PROTECTED]
Subject: Re: Retrieving all docs in the index
On Thursday 09 December 2004 21:18