On Sat, Oct 22, 2011 at 4:10 AM, Simon Willnauer <simon.willna...@googlemail.com> wrote: > On Fri, Oct 21, 2011 at 4:37 PM, Michael McCandless > <luc...@mikemccandless.com> wrote: >> Well... the limitation of DocValues is that it cannot handle more than >> one value per document (which UnInvertedField can). > > you can pack this into one byte[] or use more than one field? I don't > see a real limitation here.
Well... not very easily? UnInvertedField (DocTermOrds in Lucene) is the same as DocValues' BYTES_VAR_SORTED. So for an app to do this "on top" it'd have to handle the term -> ord resolving itself, save that somewhere, then encode the multiple ords into a byte[]. I agree for other simple types (no deref/sorting involved) an app could pack them into its own byte[] that's otherwise opaque to Lucene. Mike McCandless http://blog.mikemccandless.com