lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Beard, Brian" <Brian.Be...@mybir.com>
Subject RE: All keys for a field
Date Thu, 21 Jun 2007 13:46:25 GMT
parser = new QueryParser(....);            
parser.setAllowLeadingWildcard(true); 

-----Original Message-----
From: Martin Spamer [mailto:mspamer@ebuyer.com] 
Sent: Thursday, June 21, 2007 7:06 AM
To: java-user@lucene.apache.org
Subject: All keys for a field


I need to return all of the keys for a certain field, essentially
"fieldName:*".    This causes a ParseException / lexical error
Encountered: "*" (42), after : ""

I understand why this fails, WildCard prevent this to keep the results
manageble.  In my case the number of results will always be managable.
the field contents is a closed set of values from a DB lookup table.

Luke can list the top keys via it's Overview tab, so this must be
possible.  I just can't figure out how.

I've tried googling but I'm just getting general stuff on wildcards, I
can't find the correct search terms to use.




---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message