How to implement ES faceted search like Linkedin


(Royce) #1

Hi Elastic Search group,

Has anyone implemented a facet filter on a query where you can have
multiple facets (HTML checkboxes) to narrow down results? Similar to
how linkedIn faceted navigation works, I want to build the same. I'm
using PyES and unsure the best way to implement this type of linkedin
faceted behavior.

Thanks in advance,

Royce


(Shay Banon) #2

It depends what you want to do, if you want a linkedin like behavior, then
you don't need to have a facet filter (since it only applies to the facet),
but instead have a either a search filter(
http://www.elasticsearch.org/guide/reference/api/search/filter.html), or a
filtered query (
http://www.elasticsearch.org/guide/reference/query-dsl/filtered-query.html)
as your query, with multiple and filter (
http://www.elasticsearch.org/guide/reference/query-dsl/and-filter.html).

On Mon, Jan 16, 2012 at 10:29 PM, Royce royce.haynes@gmail.com wrote:

Hi Elastic Search group,

Has anyone implemented a facet filter on a query where you can have
multiple facets (HTML checkboxes) to narrow down results? Similar to
how linkedIn faceted navigation works, I want to build the same. I'm
using PyES and unsure the best way to implement this type of linkedin
faceted behavior.

Thanks in advance,

Royce


(Royce) #3

Shay,

Thanks for the response and helpful references.

Take care,

On Jan 17, 4:02 am, Shay Banon kim...@gmail.com wrote:

It depends what you want to do, if you want a linkedin like behavior, then
you don't need to have a facet filter (since it only applies to the facet),
but instead have a either a search filter(http://www.elasticsearch.org/guide/reference/api/search/filter.html), or a
filtered query (http://www.elasticsearch.org/guide/reference/query-dsl/filtered-query...)
as your query, with multiple and filter (http://www.elasticsearch.org/guide/reference/query-dsl/and-filter.html).

On Mon, Jan 16, 2012 at 10:29 PM, Royce royce.hay...@gmail.com wrote:

Hi Elastic Search group,

Has anyone implemented a facet filter on a query where you can have
multiple facets (HTML checkboxes) to narrow down results? Similar to
how linkedIn faceted navigation works, I want to build the same. I'm
using PyES and unsure the best way to implement this type of linkedin
faceted behavior.

Thanks in advance,

Royce


(system) #4