lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Materna, Wolf-Dietrich (empolis B)" <Wolf-Dietrich.Mate...@empolis.com>
Subject AW: Getting all Documents with QueryParser
Date Fri, 21 Feb 2003 09:24:17 GMT
Hello,
[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
bound,
e.g. [0 zzzzzzz], but this is probaly slower.
Regards,
	Wolf-Dietrich

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

---------------------------------------------------------------------
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