Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Hierarchical Facets #1076

Closed
otisg opened this issue Jun 29, 2011 · 66 comments
Closed

Support Hierarchical Facets #1076

otisg opened this issue Jun 29, 2011 · 66 comments

Comments

@otisg
Copy link

otisg commented Jun 29, 2011

This seems to be a popular request. This feature would allow hierarchical facets on fields that are not necessarily numeric, thus allowing faceting that looks like this, for example:

Media Type Facets:

  • twitter (20)
    • source: foo (12)
    • source: bar (8)
  • facebook (14)
    • source: foo (10)
    • source: bar (4)
@otisg
Copy link
Author

otisg commented Jul 3, 2011

Maybe this newly committed Lucene faceting module will provide the Hierarchical Faceting, so ES doesn't have to reinvent its own variant?
https://issues.apache.org/jira/browse/LUCENE-3079

See also: https://issues.apache.org/jira/browse/SOLR-2412

@richardsyeo
Copy link

+1

2 similar comments
@phobos182
Copy link

+1

@mobilemike
Copy link

+1

@juneym
Copy link

juneym commented Aug 17, 2011

+1 on this. I really need this feature for my project.

@mrgautamsam
Copy link

+1 Looking forward to this feature!!

@eulerfx
Copy link

eulerfx commented Oct 20, 2011

+1

23 similar comments
@acerb
Copy link
Contributor

acerb commented Nov 3, 2011

+1

@tfreitas
Copy link

tfreitas commented Nov 4, 2011

+1

@leogamas
Copy link

+1

@nhuray
Copy link
Contributor

nhuray commented Dec 29, 2011

+1

@Vineeth-Mohan
Copy link

+1

@tfreitas
Copy link

+1

@gjb83
Copy link

gjb83 commented Jan 4, 2012

+1

@guiferrpereira
Copy link

+1

@ahfeel
Copy link
Contributor

ahfeel commented Jan 16, 2012

+1

@tfreitas
Copy link

tfreitas commented Feb 7, 2012

+1

@AnAppAMonth
Copy link

+1

@hbrunsting
Copy link

+1

@jzelez
Copy link

jzelez commented Apr 12, 2012

+1

@chendo
Copy link

chendo commented May 21, 2012

+1

@rauanmayemir
Copy link

+1

@bhagwat
Copy link

bhagwat commented Jun 8, 2012

+1

@himanshuseth
Copy link

+1

@gbgmian
Copy link

gbgmian commented Jun 8, 2012

+1

@ghost
Copy link

ghost commented Jun 18, 2012

+1

@pwoestelandt
Copy link

+1

@tgautier-silicon
Copy link

+1

@mailsurfie
Copy link

+1

@jgoelen
Copy link

jgoelen commented Jul 2, 2012

+1

@xclopses
Copy link

+1

6 similar comments
@roytmana
Copy link

+1

@ssalat
Copy link

ssalat commented Jan 17, 2013

+1

@tfreitas
Copy link

+1

@antoinerg
Copy link

+1

@wesplunk
Copy link

wesplunk commented Feb 5, 2013

+1

@williamhc
Copy link

+1

@juneym
Copy link

juneym commented Feb 11, 2013

+1, last time I looked at the Hierarchical Faceting ticket of Lucene, it is still open. Anyway, this one feature is going to be a killer feature of Lucene and ES.

@divideby0
Copy link

In the meantime, there is one possible solution for hierarchical facets:

http://www.springyweb.com/2012/01/hierarchical-faceting-with-elastic.html

I haven't tried it personally, but on the surface I would imagine this approach would work.

@uded
Copy link

uded commented Feb 13, 2013

+1 and many more

Is someone working on this or is there any progress, even conceptual, to report?

@devoncrouse
Copy link

+1

@mvrhov
Copy link

mvrhov commented Mar 14, 2013

Hm the cited Lucene ticket seems to have been merged into Lucene 4.0.
So having this in 1.0 would be nice.

@mungiud
Copy link

mungiud commented Apr 13, 2013

hope so

@elvenking
Copy link

+1

1 similar comment
@PatrickSauts
Copy link

+1

@elja
Copy link

elja commented May 7, 2013

+1 please please please

@divideby0
Copy link

On the Boston Elasticsearch Meetup/Google Hangout last week, I believe the ES team mentioned that this was slated tentatively for the 1.0 release. If I'm wrong, someone please correct me. Can't seem to find the recording.

@kimchy
Copy link
Member

kimchy commented May 7, 2013

We spent time designing a new facets infrastructure, that will support this feature inherently. It is currently planned for the 1.0 release, though I must admit it is very ambitious. It is highly important and we will make all the effort to make sure it makes it to 1.0.

@otisg
Copy link
Author

otisg commented May 8, 2013

@kimchy Does it rely on DocValues at the core?

@kimchy
Copy link
Member

kimchy commented May 8, 2013

@otisg thats nto really relevant to if facets are hierarchical or not...

@otisg
Copy link
Author

otisg commented May 8, 2013

True, true. Would it be true to say that in 1.0 there be heavy use of DocValues, including for faceting?

@mattweber
Copy link
Contributor

Lucene facets support hierarchical faceting oob but the tricky part is getting them to be distributed and the fact they would need to be defined in the mapping since they build a data-structure separate from the main index on disk. It would be neat to expose this functionality.

@kimchy
Copy link
Member

kimchy commented May 8, 2013

@otisg In general, yes, we hope to expose doc values, and then things will work just the same, regardless if they use doc values, or do the uninverting from terms into memory.

@mattweber we have other ideas on how to implement composable facets that will enable the range of functionality we are after (a bit different compared to the current lucene faceting implementation).

@rturpin
Copy link

rturpin commented Jun 17, 2013

I'm very intersting by this functionnality +1

@jbwl
Copy link

jbwl commented Aug 4, 2013

+1 I would like a term stats facets with a date histogram for each term

@mattweber
Copy link
Contributor

For all the +1ers, please see #3300.

@amir20
Copy link

amir20 commented Dec 8, 2013

+1 This would help out a lot.

@divideby0
Copy link

According to @uboness this feature should be covered in the new aggregation pipeline, slated for release in ES 1.0. See the city/state "Aggregating Hierarchical Data" example at the bottom of the #3300 description.

@amir20
Copy link

amir20 commented Dec 9, 2013

Yep, I saw it. I have downloaded beta version yet. We are in middle of a launch but I am excited to give it a try!

@otisg otisg closed this as completed Dec 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests