Re: How to access DocValues inside a customized collector?

2018-09-21 Thread Lisheng Zhang
Thanks very much Uwe and Mikhail! Your points are all very well taken, so far it seems to work well, i will test more to verify details. Lisheng On Fri, Sep 21, 2018 at 3:54 AM Uwe Schindler wrote: > Hi, > > in general your approach is right, but you have to do it correctly. It > depends on

RE: How to access DocValues inside a customized collector?

2018-09-21 Thread Uwe Schindler
Hi, in general your approach is right, but you have to do it correctly. It depends on the Collector subclass you are using. The simplest is to subclass SimpleCollector: https://lucene.apache.org/core/7_4_0/core/org/apache/lucene/search/SimpleCollector.html There you have to override 2

Re: How to access DocValues inside a customized collector?

2018-09-21 Thread Mikhail Khludnev
Not sure why are you looking for something better, since it's the best API already. You can check the sample usage at .FastTaxonomyFacetCounts.countAll(IndexReader), also notice FastTaxonomyFacetCounts.count(List) where DV iterator is dragged by enclosing intersection. also

Re: How to access DocValues inside a customized collector?

2018-09-20 Thread Lisheng Zhang
Erick: Thanks very much for quick help, Luke you referred worked well (i found binary DocValues did get put in well) However i am still not sure how to efficiently access DocValues in a collector, " The Terms component directly access the indexed data and can be used to poke around in the

Re: How to access DocValues inside a customized collector?

2018-09-20 Thread Erick Erickson
What Luke are you using? I think this one is being maintained: https://github.com/DmitryKey/luke The Terms component directly access the indexed data and can be used to poke around in the indexed data. I'll skip the accessing DocValues as I have to go back and look every time. On Thu, Sep 20,