Enumerating terms will be inefficient compared to getting the stored field.I'd
try soring the fields first until and unless you can demonstrate a problem.
BTW, if you're not going to *search* on the field, there's no reason to
index
it at all.
Why do think you don't want to store the paths? How bi
You can't get at the field values from the document hits.
Field.Store.NO means it isn't stored and what isn't there can't be
retrieved.
But you should be able to get at the indexed paths via a TermEnum.
Something like this
IndexReader reader = IndexReader.open(...);
String field =
Hi,
Is there a way I can retrieve the value of a field that is not stored in the
Index?
private static void indexFile(IndexWriter writer, File f)
throws IOException {
if (f.isHidden() || !f.exists() || !f.canRead()) {
return;
}
System.out.println("Indexing " + f.getC