Re: How to consume DocValues

2012-12-12 Thread Michael McCandless
We are actually in the [slow] process of trying to simplify the DV APIs (calling it DV 2.0 for now...), at this branch: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547 If you have the itch, feel free to check it out and iterate! There are lots of changes there, roughly summari

Re: How to consume DocValues

2012-12-12 Thread Michael McCandless
I think you just forgot to call iw.addDocument(doc)? Typically one needs DocValues in a Collector or a FieldComparator or Filter or a Similarity Scorer, etc., which already operate per-segment and provide you an AtomicReaderContext from which you can get the AtomicReader to lookup DocValues from .