bq: Is accessing the stored data going to have a big impact on the time to return results?
If I'm reading this right, this an anti-pattern. Consider a corpus with 10M documents, and your query matches 1M of them. Your collector might be going out to disk to get the stored field and decompress it 1M times (subject to block sizes and all that stuff, but you get the idea). Best, Erick On Tue, Sep 23, 2014 at 4:08 PM, Scott Smith <ssm...@mainstreamdata.com> wrote: > I'm creating a custom function (extends ValueSource). I'm generating a > value that will both be returned as a value in the hit for each doc and > also be used to sort. As I read the documentation, this is not difficult. > > To determine the value for a document, I need to access the "stored" > fields for that document (i.e., the value that the function will generate > partially depends on stored information in the document). How do I access > them from the getValues() method? Is this via the FieldCache.DEFAULT? I'm > using solr 4.8 if that makes a difference (which I think it does since > older examples seem to have been deprecated). For example, if I have a > field called "Fred", how do I access that field from the document? > > Is accessing the stored data going to have a big impact on the time to > return results? > > Thanks > > Scott >