On Fri, Mar 22, 2013 at 6:26 PM, Alan Woodward <[email protected]> wrote:
> Actually this would be really nice, wouldn't it.  Add a getFieldCache(String
> field) method to AtomicReader.  You'd have to be able to determine what to
> return depending on the field though - uninverted field, or docvalues, or
> another cached source.

but the cache isnt even on the reader, its on the SegmentCoreReaders.

>
> FieldCache and DocValues seem like they ought to have a common API, really.

They already do.

I think instead FieldCache should actually be completely package
private and hidden behind a UninvertingFilterReader and accessible via
the existing AtomicReader docValues methods.

Uninverting is a really crazy solution vs. indexing fields the way
they will be used.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to