: How can I get all values across the documents with a given prefix?
: For prefix = "var" for example I would like to have a list of all 5 values.
:
: For prefix = "var_no" for example I would like to have a list of the values
: {"var_no1", "var_no2", "var_no3"}.
if you just want the values, you can use a TermEnum and stop iterating
when the Terms no longer match the prefix (or no longer match the field)
take a look at the javadocs for IndexReader.terms(Term) and try executing
"reader.terms(new Term("variable","var_no"));
-Hoss
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]