Okay, just for clarity sake, what you are saying is that if I make the FieldCache call it won't actually create and impose the loading time of the FieldCache, but rather just use the NumericDocValuesField instead. Is this correct?
Also, my similarity was extending SimilarityBase, and I can't see how to get a docId as it is not passed in the score method "score(BasicStats stats, float freq, float docLen)". Will I need to extend using Similarity instead of SimilarityBase, or is there a way to get the docId using SimilarityBase? On Mon, Aug 12, 2013 at 9:27 AM, Robert Muir <rcm...@gmail.com> wrote: > Hello: > > This call just "passes thru" to docvalues: > > FieldCache.DEFAULT.getFloats(context.reader(), boostField, false) > > if you want to call context.reader().getNumericDocValues... you could > do that too, but thats all its doing in this case. > > On Mon, Aug 12, 2013 at 11:09 AM, Ross Woolf <r...@rosswoolf.com> wrote: > > That example shows using fieldcache, I am not wanting to use the > > fieldcache. I want to use the newer NumericDocValuesField. Any > direction > > or examples of how to retrieve a value from the created > > NumericDocValuesField in most efficient way would be appreciated. > > > > > > On Mon, Aug 12, 2013 at 8:54 AM, Robert Muir <rcm...@gmail.com> wrote: > > > >> There is a unit test demonstrating this at a very basic level here: > >> > >> > >> > http://svn.apache.org/repos/asf/lucene/dev/branches/branch_4x/lucene/core/src/test/org/apache/lucene/search/TestDocValuesScoring.java > >> > >> On Mon, Aug 12, 2013 at 10:43 AM, Ross Woolf <r...@rosswoolf.com> > wrote: > >> > The JavaDocs for NumericDocValuesField indicates that this field value > >> can > >> > be used for scoring. The example shows how to store the field, but I > am > >> > unclear as to how to retrieve the value of the field while in a > >> similarity > >> > to use it when scoring a document? Can someone point me to an > example or > >> > give me one that demonstrates how I can fetch the value associated > with > >> the > >> > document being scored while in a similarity class that I have created? > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > >> For additional commands, e-mail: java-user-h...@lucene.apache.org > >> > >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > >