:jpou...@gmail.com]
Sent: Thursday, 24 October 2013 6:19 PM
To: java-user@lucene.apache.org
Subject: Re: Retrieving values for a NumericDocValuesField [SEC=UNOFFICIAL]
Hi Stephen,
On Thu, Oct 24, 2013 at 1:18 AM, Stephen GRAY wrote:
> I actually need to loop through a large number of documents
Hi Stephen,
On Thu, Oct 24, 2013 at 1:18 AM, Stephen GRAY wrote:
> I actually need to loop through a large number of documents (50,000 -
> 100,000) calculating a number of statistics (min, max, sum) so I really need
> the most efficient/fastest solution available. It sounds like it would be
>
-user@lucene.apache.org
Subject: Re: Retrieving values for a NumericDocValuesField [SEC=UNOFFICIAL]
Hi Stephen,
I have the same scenario with you. I verified with simple pure Lucene test,
same way as Mike mentioned, performance with NumericDocValue is 10x faster than
retrieving stored field.
Hope
r 2013 10:04 PM
> To: Lucene Users
> Subject: Re: Retrieving values for a NumericDocValuesField [SEC=UNOFFICIAL]
>
> You can also use MultiDocValues.getNumericDocValues(reader, field): it
> returns a "wrapper" that will do the binary search on every doc lookup.
>
> If yo
just
store the data in a stored field.
Thanks,
Steve
-Original Message-
From: Michael McCandless [mailto:luc...@mikemccandless.com]
Sent: Wednesday, 23 October 2013 10:04 PM
To: Lucene Users
Subject: Re: Retrieving values for a NumericDocValuesField [SEC=UNOFFICIAL]
You can also use
You can also use MultiDocValues.getNumericDocValues(reader, field): it
returns a "wrapper" that will do the binary search on every doc
lookup.
If you are only looking up a small number of hits (e.g. the current
"page" for the user) then typically this cost is fine.
Mike McCandless
http://blog.mi
Hi Stephen,
On Wed, Oct 23, 2013 at 9:29 AM, Stephen GRAY wrote:
> UNOFFICIAL
> Hi everyone,
>
> I have a question about how to retrieve the values in a
> NumericDocValuesField. I understand how to do this in situations where you
> have an AtomicReaderContext available
> (context.reader().getN