lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Satuluri, Venu_Madhav" <>
Subject RE: Get All Entries
Date Mon, 27 Mar 2006 10:07:23 GMT
I believe there's a MatchAllDocsQuery class from Lucene 1.9 onwards. You
can run this query to get all documents.

If you are not using 1.9, to my knowledge, you would have to add a
redundant field that would true for all documents and query on that
field. Something like Field.Keyword("AllDocsTrue", "true") and add this
to your doc. You can run the query AllDocsTrue:true to get all your


-----Original Message-----
From: StefanH [] 
Sent: Monday, March 27, 2006 3:24 PM
Subject: Get All Entries

Hello Everyone,

I have 6000 Entries in my Lucene DB and if I search for entries with
in the Number-Field it works fine. But additional I must have alle
no matter which number they have. A Term like "*" doesn't work. How can
get all entries?
The code of my search is:
			IndexSearcher is = new IndexSearcher( INDEX_DIR

			QueryParser parser = new QueryParser( "number",
			Query query = parser.parse("00*");
			Hits hits = query, new Sort("number")

Thanks for your help

Stefan H
View this message in context:
Sent from the Lucene - Java Users forum at

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

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

View raw message