Re: GROUP BY in Lucene

2016-03-19 Thread Rob Audenaerde
Hi Gimantha, You don't need to store the aggregates and don't need to retrieve Documents. The aggregates are calculated during collection using the BinaryDocValues from the facet-module. What I do, is that I need to store values in the facets using AssociationFacetFields. (for example FloatAssocia

Re: Serializing Queries

2016-03-19 Thread Bauer, Herbert S. (Scott)
Thanks James: This looks promising. I¹ll repost when I¹ve had a chance to implement this. -scott On 3/18/16, 10:44 AM, "McKinley, James T" wrote: >We use Kryo to pass query objects between hosts: > >https://github.com/EsotericSoftware/kryo > >We initially had some trouble with it creating dy

Re: GROUP BY in Lucene

2016-03-19 Thread Gimantha Bandara
Hi Rob, Thank you for explaining your approach. Still I have a few questions. Do I need to store the values being aggregated as STORED at indexing time? and how does the collector handle a large number of documents when aggregating? I mean lets say I have several millions documents in an index and

Re: Serializing Queries

2016-03-19 Thread Bauer, Herbert S. (Scott)
Thanks Ahmet: I¹ve seen these, but I don¹t find any mechanism here helping to get me from the query object to the xml or a DOM object. -scott On 3/18/16, 11:35 AM, "Ahmet Arslan" wrote: >Hi, > >I think, xml query parser examples [1] are the safest way to persist >Lucene queries. > > >[1]https: