Christoph,
as promised long time ago, i'm working on a new single method to retrieve the fieldnames with all different options. This should reduce the complexity of the current implementation which holds 4 different methods for one and the same thing.
What raised some headache are the return values of the new method IndexReader.getIndexedFieldNames(Field.TermVector tvSpec) you implemented a while ago when adding the new TermVector options.
For example if one adds a document with 4 fields like:
doc.add(new Field("termvector","termvector", Field.Store.YES, Field.Index.TOKENIZED, Field.TermVector.YES));
doc.add(new Field("tvoffset","tvoffset", Field.Store.YES, Field.Index.TOKENIZED, Field.TermVector.WITH_OFFSETS));
doc.add(new Field("tvposition","tvposition", Field.Store.YES, Field.Index.TOKENIZED, Field.TermVector.WITH_POSITIONS));
doc.add(new Field("tvpositionoffset","tvpositionoffset", Field.Store.YES, Field.Index.TOKENIZED, Field.TermVector.WITH_POSITIONS_OFFSETS));
and is calling IndexReader.getIndexedFieldNames(Field.TermVector.YES), only the first field is returned. I would expect that all 4 fields are returned, because they all have TermVectors enabled. Do i miss something, or is it a simple bug which was never coming up ? If it is buggy, i can fix it when finishing the changes in SegmentReader i have to make anyway.
thanks Bernhard
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]