Got it, thank you very much.
在 2013-7-29 下午11:34,"Adrien Grand" 写道:
> Hi,
>
> On Mon, Jul 29, 2013 at 4:56 PM, Yonghui Zhao
> wrote:
> > I want to know what will be returned if the input docID is not a valid
> id,
> > for examples:
> >
> > 1. the docID beyonds the reader scope
>
> In that case,
Hi,
On Mon, Jul 29, 2013 at 4:56 PM, Yonghui Zhao wrote:
> I want to know what will be returned if the input docID is not a valid id,
> for examples:
>
> 1. the docID beyonds the reader scope
In that case, the behavior is not defined, it might throw an exception
or return a random value. You sh
In luncene 4.3 AtomicReader has this interface
public abstract NumericDocValues getNumericDocValues(String field)
throwsIOException
If I get a NumericDocValues of one field from a reader.
NumericDocValues has get interface.
/**
* Returns the numeric value for the specified document ID