Position problems in 4.3.0

2013-09-17 Thread Ross Woolf
Most of my terms return the correct position that they are in, but there is a percent or them that return really bad values. For example, I have a field that contains 5 terms, when I ask for term position of one of the terms (that I know is in position 3) I am getting a value of 43 returned. If I

Re: How to retrieve value of NumericDocValuesField in similarity

2013-08-12 Thread Ross Woolf
Yes, I will open an issue. On Mon, Aug 12, 2013 at 10:02 AM, Robert Muir wrote: > On Mon, Aug 12, 2013 at 8:48 AM, Ross Woolf wrote: > > 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 l

Re: How to retrieve value of NumericDocValuesField in similarity

2013-08-12 Thread Ross Woolf
uir 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

Re: How to retrieve value of NumericDocValuesField in similarity

2013-08-12 Thread Ross Woolf
, Robert Muir 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 Woo

How to retrieve value of NumericDocValuesField in similarity

2013-08-12 Thread Ross Woolf
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 gi