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: Question About FST, multiple-column index

2018-09-21 Thread Mikhail Khludnev
No way. And this is the point. To have combined index you need to combine fields concatenating terms. It will be faster but it brings much other hurdles. Do you think that this is the real problem? What's the search time now and how do you search exactly? On Thu, Sep 20, 2018 at 5:57 PM ly铖

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: Running query against a single document

2018-09-21 Thread Tom Mortimer
Hi, Have you considered using MemoryIndex ? cheers, Tom tel +44 8700 118334 : mobile +44 7876 741014 : skype tommortimer On Fri, 21 Sep 2018 at 13:58, Aurélien MAZOYER wrote: > Hi, > > We would

Running query against a single document

2018-09-21 Thread Aurélien MAZOYER
Hi, We would like to know if there is a way to test a query against a document without creating an index. We were thinking that maybe we could use lucene highlighter component to achieve this, but it seems it doesn't work as expected with complex queries. For example, we create a SpanQuery

Re: Running query against a single document

2018-09-21 Thread Erick Erickson
bq. We would like to know if there is a way to test a query against a document without creating an index. We were thinking that maybe we could use lucene highlighter component to achieve this, I don't really understand this at all. How are you using the highlighter component without creating an

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