I am storing data in lucene.Net I add a document with multiple fields :
var doc = new Document();
doc.Add(new Field("CreationDate", dt, Field.Store.YES, Field.Index.ANALYZED));
doc.Add(new Field("FileName", path, Field.Store.YES, Field.Index.ANALYZED));
doc.Add(new Field("Directory", dtpath, Field.Store.YES, Field.Index.NOT_ANALYZED));
doc.Add(new Field("Text", text.ToString(), Field.Store.YES, Field.Index.ANALYZED));
...
writer.AddDocument(doc);
I want to move through all items and return fields "CreationDate" and "Directory" for each document. But a Term can only except 1 field :
var termEnum = reader.Terms(new Term("CreationDate"));
How do i make it return the 2 fields ???
Thanks Martin