Hierarchical facets


(David Stendardi) #1

Hi there !

Is there any plan to implement hierarchical facets ?
If not we may help and contribute as we need this feature for a starting
project
(this feature will determine if we choose elasticsearch over solr)

Cheers,

--
David Stendardi


(Otis Gospodnetić) #2

ES has a ticket for this open on Github with lots of +1s.
Solr has a few patches for this and Wiki page(s) describing how they
work.

Otis

On Dec 29, 10:46 am, David Stendardi david.stenda...@gmail.com
wrote:

Hi there !

Is there any plan to implement hierarchical facets ?
If not we may help and contribute as we need this feature for a starting
project
(this feature will determine if we choose elasticsearch over solr)

Cheers,

--
David Stendardi


(Shay Banon) #3

There is a plan to support it, nothing scheduled yet though (its tricky to
make it performant).

On Fri, Dec 30, 2011 at 10:01 AM, Otis Gospodnetic <
otis.gospodnetic@gmail.com> wrote:

ES has a ticket for this open on Github with lots of +1s.
Solr has a few patches for this and Wiki page(s) describing how they
work.

Otis

On Dec 29, 10:46 am, David Stendardi david.stenda...@gmail.com
wrote:

Hi there !

Is there any plan to implement hierarchical facets ?
If not we may help and contribute as we need this feature for a starting
project
(this feature will determine if we choose elasticsearch over solr)

Cheers,

--
David Stendardi


(project2501) #4

What do you define as a hierarchical facet?

I implemented hierarchical faceting by providing a parent field in my
query when faceting. It works.
But relies that your hierarchy be established at index time through
fields.

On Dec 30, 7:35 am, Shay Banon kim...@gmail.com wrote:

There is a plan to support it, nothing scheduled yet though (its tricky to
make it performant).

On Fri, Dec 30, 2011 at 10:01 AM, Otis Gospodnetic <

otis.gospodne...@gmail.com> wrote:

ES has a ticket for this open on Github with lots of +1s.
Solr has a few patches for this and Wiki page(s) describing how they
work.

Otis

On Dec 29, 10:46 am, David Stendardi david.stenda...@gmail.com
wrote:

Hi there !

Is there any plan to implement hierarchical facets ?
If not we may help and contribute as we need this feature for a starting
project
(this feature will determine if we choose elasticsearch over solr)

Cheers,

--
David Stendardi


(David Stendardi) #5

take a look at the issue (and solr equivalent) :

2011/12/30 project2501 darreng5150@gmail.com

What do you define as a hierarchical facet?

I implemented hierarchical faceting by providing a parent field in my
query when faceting. It works.
But relies that your hierarchy be established at index time through
fields.

On Dec 30, 7:35 am, Shay Banon kim...@gmail.com wrote:

There is a plan to support it, nothing scheduled yet though (its tricky
to
make it performant).

On Fri, Dec 30, 2011 at 10:01 AM, Otis Gospodnetic <

otis.gospodne...@gmail.com> wrote:

ES has a ticket for this open on Github with lots of +1s.
Solr has a few patches for this and Wiki page(s) describing how they
work.

Otis

On Dec 29, 10:46 am, David Stendardi david.stenda...@gmail.com
wrote:

Hi there !

Is there any plan to implement hierarchical facets ?
If not we may help and contribute as we need this feature for a
starting

project
(this feature will determine if we choose elasticsearch over solr)

Cheers,

--
David Stendardi

--
David Stendardi


(project2501) #6

I achieved that using Solr out of the box using the technique I
mentioned above.
In my UI, when a user "drills" down from a facet in the hierarchy, it
issues another facet query on the fly. Works great.

On Dec 30, 9:19 am, David Stendardi david.stenda...@gmail.com wrote:

take a look at the issue (and solr equivalent) :https://github.com/elasticsearch/elasticsearch/issues/1076

2011/12/30 project2501 darreng5...@gmail.com

What do you define as a hierarchical facet?

I implemented hierarchical faceting by providing a parent field in my
query when faceting. It works.
But relies that your hierarchy be established at index time through
fields.

On Dec 30, 7:35 am, Shay Banon kim...@gmail.com wrote:

There is a plan to support it, nothing scheduled yet though (its tricky
to
make it performant).

On Fri, Dec 30, 2011 at 10:01 AM, Otis Gospodnetic <

otis.gospodne...@gmail.com> wrote:

ES has a ticket for this open on Github with lots of +1s.
Solr has a few patches for this and Wiki page(s) describing how they
work.

Otis

On Dec 29, 10:46 am, David Stendardi david.stenda...@gmail.com
wrote:

Hi there !

Is there any plan to implement hierarchical facets ?
If not we may help and contribute as we need this feature for a
starting

project
(this feature will determine if we choose elasticsearch over solr)

Cheers,

--
David Stendardi

--
David Stendardi


(Shay Banon) #7

What I like about this issue is the first comment which basically points to
a new facet feature in Lucene without even understanding what it provides /
how its implemented / or what its implications are :).

On Fri, Dec 30, 2011 at 4:19 PM, David Stendardi
david.stendardi@gmail.comwrote:

take a look at the issue (and solr equivalent) :
https://github.com/elasticsearch/elasticsearch/issues/1076

2011/12/30 project2501 darreng5150@gmail.com

What do you define as a hierarchical facet?

I implemented hierarchical faceting by providing a parent field in my
query when faceting. It works.
But relies that your hierarchy be established at index time through
fields.

On Dec 30, 7:35 am, Shay Banon kim...@gmail.com wrote:

There is a plan to support it, nothing scheduled yet though (its tricky
to
make it performant).

On Fri, Dec 30, 2011 at 10:01 AM, Otis Gospodnetic <

otis.gospodne...@gmail.com> wrote:

ES has a ticket for this open on Github with lots of +1s.
Solr has a few patches for this and Wiki page(s) describing how they
work.

Otis

On Dec 29, 10:46 am, David Stendardi david.stenda...@gmail.com
wrote:

Hi there !

Is there any plan to implement hierarchical facets ?
If not we may help and contribute as we need this feature for a
starting

project
(this feature will determine if we choose elasticsearch over solr)

Cheers,

--
David Stendardi

--
David Stendardi


(David Stendardi) #8

I think we will use your solution, because when Shay says something is a
bit tricky, it is a little scaring :slight_smile:

2011/12/30 project2501 darreng5150@gmail.com

I achieved that using Solr out of the box using the technique I
mentioned above.
In my UI, when a user "drills" down from a facet in the hierarchy, it
issues another facet query on the fly. Works great.

On Dec 30, 9:19 am, David Stendardi david.stenda...@gmail.com wrote:

take a look at the issue (and solr equivalent) :
https://github.com/elasticsearch/elasticsearch/issues/1076

2011/12/30 project2501 darreng5...@gmail.com

What do you define as a hierarchical facet?

I implemented hierarchical faceting by providing a parent field in my
query when faceting. It works.
But relies that your hierarchy be established at index time through
fields.

On Dec 30, 7:35 am, Shay Banon kim...@gmail.com wrote:

There is a plan to support it, nothing scheduled yet though (its
tricky

to

make it performant).

On Fri, Dec 30, 2011 at 10:01 AM, Otis Gospodnetic <

otis.gospodne...@gmail.com> wrote:

ES has a ticket for this open on Github with lots of +1s.
Solr has a few patches for this and Wiki page(s) describing how
they

work.

Otis

On Dec 29, 10:46 am, David Stendardi david.stenda...@gmail.com
wrote:

Hi there !

Is there any plan to implement hierarchical facets ?
If not we may help and contribute as we need this feature for a
starting

project
(this feature will determine if we choose elasticsearch over
solr)

Cheers,

--
David Stendardi

--
David Stendardi

--
David Stendardi


(project2501) #9

Yeah, Occum's Razor wins in this case. What the issue is trying to
suggest may require real magic.

My solution would work for ES too since its just vanilla lucene stuff.

On Dec 30, 10:09 am, Shay Banon kim...@gmail.com wrote:

What I like about this issue is the first comment which basically points to
a new facet feature in Lucene without even understanding what it provides /
how its implemented / or what its implications are :).

On Fri, Dec 30, 2011 at 4:19 PM, David Stendardi
david.stenda...@gmail.comwrote:

take a look at the issue (and solr equivalent) :
https://github.com/elasticsearch/elasticsearch/issues/1076

2011/12/30 project2501 darreng5...@gmail.com

What do you define as a hierarchical facet?

I implemented hierarchical faceting by providing a parent field in my
query when faceting. It works.
But relies that your hierarchy be established at index time through
fields.

On Dec 30, 7:35 am, Shay Banon kim...@gmail.com wrote:

There is a plan to support it, nothing scheduled yet though (its tricky
to
make it performant).

On Fri, Dec 30, 2011 at 10:01 AM, Otis Gospodnetic <

otis.gospodne...@gmail.com> wrote:

ES has a ticket for this open on Github with lots of +1s.
Solr has a few patches for this and Wiki page(s) describing how they
work.

Otis

On Dec 29, 10:46 am, David Stendardi david.stenda...@gmail.com
wrote:

Hi there !

Is there any plan to implement hierarchical facets ?
If not we may help and contribute as we need this feature for a
starting

project
(this feature will determine if we choose elasticsearch over solr)

Cheers,

--
David Stendardi

--
David Stendardi


(Shay Banon) #10

To be honest, the "tricky" part would be to build one that supports
different "facets" for each hierarchy, i.e. break by terms and then break
by range and then ..., while still having it performing decently. A
specialized one, that just does two level terms is much simpler. At the end
though, we might end up with several specialized ones since with
specialized ones we can make them perform better.

On Fri, Dec 30, 2011 at 6:02 PM, David Stendardi
david.stendardi@gmail.comwrote:

I think we will use your solution, because when Shay says something is a
bit tricky, it is a little scaring :slight_smile:

2011/12/30 project2501 darreng5150@gmail.com

I achieved that using Solr out of the box using the technique I
mentioned above.
In my UI, when a user "drills" down from a facet in the hierarchy, it
issues another facet query on the fly. Works great.

On Dec 30, 9:19 am, David Stendardi david.stenda...@gmail.com wrote:

take a look at the issue (and solr equivalent) :
https://github.com/elasticsearch/elasticsearch/issues/1076

2011/12/30 project2501 darreng5...@gmail.com

What do you define as a hierarchical facet?

I implemented hierarchical faceting by providing a parent field in my
query when faceting. It works.
But relies that your hierarchy be established at index time through
fields.

On Dec 30, 7:35 am, Shay Banon kim...@gmail.com wrote:

There is a plan to support it, nothing scheduled yet though (its
tricky

to

make it performant).

On Fri, Dec 30, 2011 at 10:01 AM, Otis Gospodnetic <

otis.gospodne...@gmail.com> wrote:

ES has a ticket for this open on Github with lots of +1s.
Solr has a few patches for this and Wiki page(s) describing how
they

work.

Otis

On Dec 29, 10:46 am, David Stendardi david.stenda...@gmail.com
wrote:

Hi there !

Is there any plan to implement hierarchical facets ?
If not we may help and contribute as we need this feature for a
starting

project
(this feature will determine if we choose elasticsearch over
solr)

Cheers,

--
David Stendardi

--
David Stendardi

--
David Stendardi


(Yeroc-2) #11

Have you ever had a change to talk to the LinkedIn guys or look at how Bobo
(http://sna-projects.com/bobo/) is implemented? I looked at it some time
ago and it seemed to work quite well... Not sure how it plays in a
distributed world like ES but LinkedIn also had/have a working integration
with Sensei (somewhat similar to ES) so there may well be some good things
to learn there?

Regards,
Corey


(system) #12