# How to implement ES faceted search like Linkedin

**URL:** https://discuss.elastic.co/t/how-to-implement-es-faceted-search-like-linkedin/6403
**Category:** Elasticsearch
**Created:** [January 16, 2012, 8:29pm UTC](https://discuss.elastic.co/t/how-to-implement-es-faceted-search-like-linkedin/6403 "2012-01-16T20:29:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Royce](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/royce/32/3016_2.png) [@Royce](https://discuss.elastic.co/u/Royce)
#### Post date: [January 16, 2012, 8:29pm UTC](https://discuss.elastic.co/t/how-to-implement-es-faceted-search-like-linkedin/6403/1 "2012-01-16T20:29:09Z")

</div>

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

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [January 17, 2012, 10:02am UTC](https://discuss.elastic.co/t/how-to-implement-es-faceted-search-like-linkedin/6403/2 "2012-01-17T10:02:11Z")

</div>

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(  
[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/filter.html)), or a  
filtered query (  
[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/query-dsl/filtered-query.html))  
as your query, with multiple and filter (  
[Elasticsearch Platform — Find real-time answers at scale | Elastic](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](mailto: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

---

<div class="post-metadata">

### Author: ![Royce](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/royce/32/3016_2.png) [@Royce](https://discuss.elastic.co/u/Royce)
#### Post date: [January 17, 2012, 4:43pm UTC](https://discuss.elastic.co/t/how-to-implement-es-faceted-search-like-linkedin/6403/3 "2012-01-17T16:43:25Z")

</div>

Shay,

Thanks for the response and helpful references.

Take care,

On Jan 17, 4:02 am, Shay Banon [kim...@gmail.com](mailto: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([Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/filter.html)), or a  
> filtered query ([Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/query-dsl/filtered-query)...)  
> as your query, with multiple and filter ([Elasticsearch Platform — Find real-time answers at scale | Elastic](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](mailto: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

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [July 6, 2017, 3:42am UTC](https://discuss.elastic.co/t/how-to-implement-es-faceted-search-like-linkedin/6403/4 "2017-07-06T03:42:27Z")

</div>


