You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by StefanH <St...@gemida.de> on 2006/03/27 11:53:52 UTC
Get All Entries
Hello Everyone,
I have 6000 Entries in my Lucene DB and if I search for entries with "00*"
in the Number-Field it works fine. But additional I must have alle entries
no matter which number they have. A Term like "*" doesn't work. How can I
get all entries?
The code of my search is:
IndexSearcher is = new IndexSearcher( INDEX_DIR );
QueryParser parser = new QueryParser( "number", analyzer);
Query query = parser.parse("00*");
Hits hits = is.search( query, new Sort("number") );
Thanks for your help
Stefan H
--
View this message in context: http://www.nabble.com/Get-All-Entries-t1348226.html#a3606783
Sent from the Lucene - Java Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
RE: Get All Entries
Posted by StefanH <St...@gemida.de>.
It works perfect. After installation of 1.9. I've the MatchAllDocsQuery.
Thanks!
--
View this message in context: http://www.nabble.com/Get-All-Entries-t1348226.html#a3610840
Sent from the Lucene - Java Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org