On Jul 27, 2005, at 11:07 AM, Federico Tonioni wrote:

Hi all!
I have just a simple question

How can I retrieve all documents in an index by using QueryParser?
I thought

Query query = QueryParser.parse("*", "contents",
                    new StandardAnalyzer());

might be the solution, but it's not:)

In general, you can't. Many have used a technique of indexing a single field with the same value for all documents and done a query for field:value to find all documents.

    Erik


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

Reply via email to