lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Materna, Wolf-Dietrich (empolis B)" <>
Subject AW: Getting all Documents with QueryParser
Date Fri, 21 Feb 2003 09:24:17 GMT
[Günter Kukies]
> is it possible to get all Documents with the QueryParser? How 
> should the querystring look like?
> The * is not allowed as a Wildcard for all Documents.
You can use the IndexReader to access all terms or documents. It is used
by the IndexSearcher to read the index.
You should change the QueryParser to allow * as Wildcard-Query and extend
the IndexSearcher to return all documents for this special query.

You can also try to create a RangeQuery with lowest and highest term as
e.g. [0 zzzzzzz], but this is probaly slower.

Wolf-Dietrich Materna
empolis GmbH -  arvato knowledge management 
Kekuléstr. 7 
12489 Berlin, Germany
phone :  +49-30-6780-6510
fax :    +49-30-6780-6549
<<>> <<>>

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

View raw message