apache / lucene

Apache Lucene open-source search software
https://lucene.apache.org/
Apache License 2.0
2.69k stars 1.04k forks source link

Bucketing of association value of a certain category [LUCENE-3688] #4762

Open asfimport opened 12 years ago

asfimport commented 12 years ago

Add facet requests which collect associations of a certain category into buckets, and returns each bucket as a facet result node. Association type is either int or float, and there are two methods to define buckets. The first by providing buckets which contain pre-defined ranges. The other is by declaring the required number of buckets, where the ranges of the different buckets are dynamicly set to create balanced bucket sizes.


Migrated from LUCENE-3688 by Sivan Yogev, updated Jul 22 2013 Attachments: LUCENE-association-buckets.patch, LUCENE-association-buckets.r1292224.patch

asfimport commented 12 years ago

Sivan Yogev (migrated from JIRA)

New patch

asfimport commented 11 years ago

Shai Erera (@shaie) (migrated from JIRA)

Sivan, I think that RangeFacetRequest (and RangeAccumulator) tackle the pre-defined ranges. It doesn't use facet associations, but rather a NumericDVField. Do you want to convert the dynamic bucketing to work over numeric fields too?

asfimport commented 11 years ago

Sivan Yogev (migrated from JIRA)

I want to do this, but not sure when I will get to it.