TermSpans skipTo() doesn't always move forwards
---
Key: LUCENE-1327
URL: https://issues.apache.org/jira/browse/LUCENE-1327
Project: Lucene - Java
Issue Type: Bug
Components: Query/Scorin
I am trying to retrieve the url and use it as filter. The main problem is I
don't want to use a reader to continuously retrieve the url for each
document located.
TermDocs termDocs = reader.termDocs();
TermEnum termEnum = reader.terms (new Term (field, ""));
do{
Term term = termEnum.term();
}
As Shai told before, you should store the field twice: As tokenized field
for your search and with a different name (e.g. "field-untokenized"). For
your TermEnum Code you may use the untokenized field, for normal search
queries the tokenized.
If you want to retrieve the field contents with Document