Multi-select facets


(Karussell) #1

Hi,

as we discussed in these issues ** there seems to be a way in ES to
enable 'multiselect' when faceting.

Now my problem is: I do not understand the difference between
global=true and issue 650

I've tried different things but I cannot make multi faceting work with
that :frowning:

Or maybe I didn't properly told you what I meant ... and this guy here
can better explain the multiselect feature?


(see multi faceting)

Kind Regards,
Peter.

**


(Shay Banon) #2

Can you explain what you are trying to do, and I will explain how to do that with 650 and the option of running global facets. It sounds like, from what I understand, that you don't need global facets.

-shay.banon
On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:

Hi,

as we discussed in these issues ** there seems to be a way in ES to
enable 'multiselect' when faceting.

Now my problem is: I do not understand the difference between
global=true and issue 650

I've tried different things but I cannot make multi faceting work with
that :frowning:

Or maybe I didn't properly told you what I meant ... and this guy here
can better explain the multiselect feature?

http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-in.html
(see multi faceting)

Kind Regards,
Peter.

**
https://github.com/elasticsearch/elasticsearch/issues/issue/499

https://github.com/elasticsearch/elasticsearch/issues/issue/650


(Shay Banon) #3

By they way, if I understood the example correctly, what you need to do is use 650, and provide the filter in the search request using the new filter element. The hits will be filtered using it, but the facets will not. If you still want certain facets to be filtered by it, you can simply add this filter to those facets as well using facet_filter.
On Monday, January 31, 2011 at 12:24 PM, Shay Banon wrote:

Can you explain what you are trying to do, and I will explain how to do that with 650 and the option of running global facets. It sounds like, from what I understand, that you don't need global facets.

-shay.banon
On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:

Hi,

as we discussed in these issues ** there seems to be a way in ES to
enable 'multiselect' when faceting.

Now my problem is: I do not understand the difference between
global=true and issue 650

I've tried different things but I cannot make multi faceting work with
that :frowning:

Or maybe I didn't properly told you what I meant ... and this guy here
can better explain the multiselect feature?

http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-in.html
(see multi faceting)

Kind Regards,
Peter.

**
https://github.com/elasticsearch/elasticsearch/issues/issue/499

https://github.com/elasticsearch/elasticsearch/issues/issue/650


(Karussell) #4

Thanks Shay for not giving up me :slight_smile:

Imagine I have several facet fields using the term facet feature and
the day faceting:

E.g. language, urlTitle and day (monday, tuesday, ...).

Now if the user clicks on one language it should filter the docs and
it also should filter two facets: urlTitle and dateFacets BUT NOT the
facet counts of language!

One more example: The same should happen if a user clicks on a day
('monday') then the docs should be only from monday and the facet
counts of urlTitle and language should also only be from monday. But
the counts of the dayFacets should stay!! So that the user can 'see'
the other days and can simply click then on tuesday to switch to
tuesday, etc. So the dayFilter should NOT apply on the counts of the
dayFacets but it should apply on the rest.

Is this possible?

Regards,
Peter.

On 31 Jan., 11:24, Shay Banon shay.ba...@elasticsearch.com wrote:

Can you explain what you are trying to do, and I will explain how to do that with 650 and the option of running global facets. It sounds like, from what I understand, that you don't need global facets.

-shay.banon

On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:

Hi,

as we discussed in these issues ** there seems to be a way in ES to
enable 'multiselect' when faceting.

Now my problem is: I do not understand the difference between
global=true and issue 650

I've tried different things but I cannot make multi faceting work with
that :frowning:

Or maybe I didn't properly told you what I meant ... and this guy here
can better explain the multiselect feature?

http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-...
(see multi faceting)

Kind Regards,
Peter.

**
https://github.com/elasticsearch/elasticsearch/issues/issue/499

https://github.com/elasticsearch/elasticsearch/issues/issue/650


(Shay Banon) #5

Yea, its possible. Using 650:

Pass the new filter element in the search request for the language (term filter), and add the same facet_filter to the urlTitle and day facet, but don't pass it as a facet_filter to language.

Make sense?

-shay.banon
On Monday, January 31, 2011 at 12:43 PM, Karussell wrote:

Thanks Shay for not giving up me :slight_smile:

Imagine I have several facet fields using the term facet feature and
the day faceting:

E.g. language, urlTitle and day (monday, tuesday, ...).

Now if the user clicks on one language it should filter the docs and
it also should filter two facets: urlTitle and dateFacets BUT NOT the
facet counts of language!

One more example: The same should happen if a user clicks on a day
('monday') then the docs should be only from monday and the facet
counts of urlTitle and language should also only be from monday. But
the counts of the dayFacets should stay!! So that the user can 'see'
the other days and can simply click then on tuesday to switch to
tuesday, etc. So the dayFilter should NOT apply on the counts of the
dayFacets but it should apply on the rest.

Is this possible?

Regards,
Peter.

On 31 Jan., 11:24, Shay Banon shay.ba...@elasticsearch.com wrote:

Can you explain what you are trying to do, and I will explain how to do that with 650 and the option of running global facets. It sounds like, from what I understand, that you don't need global facets.

-shay.banon

On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:

Hi,

as we discussed in these issues ** there seems to be a way in ES to
enable 'multiselect' when faceting.

Now my problem is: I do not understand the difference between
global=true and issue 650

I've tried different things but I cannot make multi faceting work with
that :frowning:

Or maybe I didn't properly told you what I meant ... and this guy here
can better explain the multiselect feature?

http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-...
(see multi faceting)

Kind Regards,
Peter.

**
https://github.com/elasticsearch/elasticsearch/issues/issue/499

https://github.com/elasticsearch/elasticsearch/issues/issue/650


(Enrique Medina Montenegro) #6

Shay,

What if, in your example in 650, "tags" is actually an array to support
multiple values? Like this:

....
"tags": ["green","blue","red"]
....

Would the filter still apply?

Thanks.

On Mon, Jan 31, 2011 at 11:46 AM, Shay Banon
shay.banon@elasticsearch.comwrote:

Yea, its possible. Using 650:

Pass the new filter element in the search request for the language (term
filter), and add the same facet_filter to the urlTitle and day facet, but
don't pass it as a facet_filter to language.

Make sense?

-shay.banon

On Monday, January 31, 2011 at 12:43 PM, Karussell wrote:

Thanks Shay for not giving up me :slight_smile:

Imagine I have several facet fields using the term facet feature and
the day faceting:

E.g. language, urlTitle and day (monday, tuesday, ...).

Now if the user clicks on one language it should filter the docs and
it also should filter two facets: urlTitle and dateFacets BUT NOT the
facet counts of language!

One more example: The same should happen if a user clicks on a day
('monday') then the docs should be only from monday and the facet
counts of urlTitle and language should also only be from monday. But
the counts of the dayFacets should stay!! So that the user can 'see'
the other days and can simply click then on tuesday to switch to
tuesday, etc. So the dayFilter should NOT apply on the counts of the
dayFacets but it should apply on the rest.

Is this possible?

Regards,
Peter.

On 31 Jan., 11:24, Shay Banon shay.ba...@elasticsearch.com wrote:

Can you explain what you are trying to do, and I will explain how to do
that with 650 and the option of running global facets. It sounds like, from
what I understand, that you don't need global facets.

-shay.banon

On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:

Hi,

as we discussed in these issues ** there seems to be a way in ES to
enable 'multiselect' when faceting.

Now my problem is: I do not understand the difference between
global=true and issue 650

I've tried different things but I cannot make multi faceting work with
that :frowning:

Or maybe I didn't properly told you what I meant ... and this guy here
can better explain the multiselect feature?

http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-...
(see multi faceting)

Kind Regards,
Peter.

**
https://github.com/elasticsearch/elasticsearch/issues/issue/499

https://github.com/elasticsearch/elasticsearch/issues/issue/650


(Shay Banon) #7

Yep, it will work as expected.
On Monday, January 31, 2011 at 6:26 PM, Enrique Medina Montenegro wrote:

Shay,

What if, in your example in 650, "tags" is actually an array to support multiple values? Like this:

....
"tags": ["green","blue","red"]
....

Would the filter still apply?

Thanks.

On Mon, Jan 31, 2011 at 11:46 AM, Shay Banon shay.banon@elasticsearch.com wrote:

Yea, its possible. Using 650:

Pass the new filter element in the search request for the language (term filter), and add the same facet_filter to the urlTitle and day facet, but don't pass it as a facet_filter to language.

Make sense?

-shay.banon
On Monday, January 31, 2011 at 12:43 PM, Karussell wrote:

Thanks Shay for not giving up me :slight_smile:

Imagine I have several facet fields using the term facet feature and
the day faceting:

E.g. language, urlTitle and day (monday, tuesday, ...).

Now if the user clicks on one language it should filter the docs and
it also should filter two facets: urlTitle and dateFacets BUT NOT the
facet counts of language!

One more example: The same should happen if a user clicks on a day
('monday') then the docs should be only from monday and the facet
counts of urlTitle and language should also only be from monday. But
the counts of the dayFacets should stay!! So that the user can 'see'
the other days and can simply click then on tuesday to switch to
tuesday, etc. So the dayFilter should NOT apply on the counts of the
dayFacets but it should apply on the rest.

Is this possible?

Regards,
Peter.

On 31 Jan., 11:24, Shay Banon shay.ba...@elasticsearch.com wrote:

Can you explain what you are trying to do, and I will explain how to do that with 650 and the option of running global facets. It sounds like, from what I understand, that you don't need global facets.

-shay.banon

On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:

Hi,

as we discussed in these issues ** there seems to be a way in ES to
enable 'multiselect' when faceting.

Now my problem is: I do not understand the difference between
global=true and issue 650

I've tried different things but I cannot make multi faceting work with
that :frowning:

Or maybe I didn't properly told you what I meant ... and this guy here
can better explain the multiselect feature?

http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-...
(see multi faceting)

Kind Regards,
Peter.

**
https://github.com/elasticsearch/elasticsearch/issues/issue/499

https://github.com/elasticsearch/elasticsearch/issues/issue/650


(Enrique Medina Montenegro) #8

When is 0.15 planned then?

On Mon, Jan 31, 2011 at 5:33 PM, Shay Banon shay.banon@elasticsearch.comwrote:

Yep, it will work as expected.

On Monday, January 31, 2011 at 6:26 PM, Enrique Medina Montenegro wrote:

Shay,

What if, in your example in 650, "tags" is actually an array to support
multiple values? Like this:

....
"tags": ["green","blue","red"]
....

Would the filter still apply?

Thanks.

On Mon, Jan 31, 2011 at 11:46 AM, Shay Banon <shay.banon@elasticsearch.com

wrote:

Yea, its possible. Using 650:

Pass the new filter element in the search request for the language (term
filter), and add the same facet_filter to the urlTitle and day facet, but
don't pass it as a facet_filter to language.

Make sense?

-shay.banon

On Monday, January 31, 2011 at 12:43 PM, Karussell wrote:

Thanks Shay for not giving up me :slight_smile:

Imagine I have several facet fields using the term facet feature and
the day faceting:

E.g. language, urlTitle and day (monday, tuesday, ...).

Now if the user clicks on one language it should filter the docs and
it also should filter two facets: urlTitle and dateFacets BUT NOT the
facet counts of language!

One more example: The same should happen if a user clicks on a day
('monday') then the docs should be only from monday and the facet
counts of urlTitle and language should also only be from monday. But
the counts of the dayFacets should stay!! So that the user can 'see'
the other days and can simply click then on tuesday to switch to
tuesday, etc. So the dayFilter should NOT apply on the counts of the
dayFacets but it should apply on the rest.

Is this possible?

Regards,
Peter.

On 31 Jan., 11:24, Shay Banon shay.ba...@elasticsearch.com wrote:

Can you explain what you are trying to do, and I will explain how to do
that with 650 and the option of running global facets. It sounds like, from
what I understand, that you don't need global facets.

-shay.banon

On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:

Hi,

as we discussed in these issues ** there seems to be a way in ES to
enable 'multiselect' when faceting.

Now my problem is: I do not understand the difference between
global=true and issue 650

I've tried different things but I cannot make multi faceting work with
that :frowning:

Or maybe I didn't properly told you what I meant ... and this guy here
can better explain the multiselect feature?

http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-...
(see multi faceting)

Kind Regards,
Peter.

**
https://github.com/elasticsearch/elasticsearch/issues/issue/499

https://github.com/elasticsearch/elasticsearch/issues/issue/650


(Karussell) #9

Hmmh, but what is the difference of global=true and additional filters
for facets?

On 31 Jan., 11:46, Shay Banon shay.ba...@elasticsearch.com wrote:

Yea, its possible. Using 650:

Pass the new filter element in the search request for the language (term filter), and add the same facet_filter to the urlTitle and day facet, but don't pass it as a facet_filter to language.

Make sense?

-shay.banon

On Monday, January 31, 2011 at 12:43 PM, Karussell wrote:

Thanks Shay for not giving up me :slight_smile:

Imagine I have several facet fields using the term facet feature and
the day faceting:

E.g. language, urlTitle and day (monday, tuesday, ...).

Now if the user clicks on one language it should filter the docs and
it also should filter two facets: urlTitle and dateFacets BUT NOT the
facet counts of language!

One more example: The same should happen if a user clicks on a day
('monday') then the docs should be only from monday and the facet
counts of urlTitle and language should also only be from monday. But
the counts of the dayFacets should stay!! So that the user can 'see'
the other days and can simply click then on tuesday to switch to
tuesday, etc. So the dayFilter should NOT apply on the counts of the
dayFacets but it should apply on the rest.

Is this possible?

Regards,
Peter.

On 31 Jan., 11:24, Shay Banon shay.ba...@elasticsearch.com wrote:

Can you explain what you are trying to do, and I will explain how to do that with 650 and the option of running global facets. It sounds like, from what I understand, that you don't need global facets.

-shay.banon

On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:

Hi,

as we discussed in these issues ** there seems to be a way in ES to
enable 'multiselect' when faceting.

Now my problem is: I do not understand the difference between
global=true and issue 650

I've tried different things but I cannot make multi faceting work with
that :frowning:

Or maybe I didn't properly told you what I meant ... and this guy here
can better explain the multiselect feature?

http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-...
(see multi faceting)

Kind Regards,
Peter.

**
https://github.com/elasticsearch/elasticsearch/issues/issue/499

https://github.com/elasticsearch/elasticsearch/issues/issue/650


(Shay Banon) #10

With global set to true, it will run over the whole hits, and use the filter to filter out results. This means you will need to add the original query as a filter, possibly ANDing it with another filter, to get the same affect as the option to pass filter in 650.
On Monday, January 31, 2011 at 9:17 PM, Karussell wrote:

Hmmh, but what is the difference of global=true and additional filters
for facets?

On 31 Jan., 11:46, Shay Banon shay.ba...@elasticsearch.com wrote:

Yea, its possible. Using 650:

Pass the new filter element in the search request for the language (term filter), and add the same facet_filter to the urlTitle and day facet, but don't pass it as a facet_filter to language.

Make sense?

-shay.banon

On Monday, January 31, 2011 at 12:43 PM, Karussell wrote:

Thanks Shay for not giving up me :slight_smile:

Imagine I have several facet fields using the term facet feature and
the day faceting:

E.g. language, urlTitle and day (monday, tuesday, ...).

Now if the user clicks on one language it should filter the docs and
it also should filter two facets: urlTitle and dateFacets BUT NOT the
facet counts of language!

One more example: The same should happen if a user clicks on a day
('monday') then the docs should be only from monday and the facet
counts of urlTitle and language should also only be from monday. But
the counts of the dayFacets should stay!! So that the user can 'see'
the other days and can simply click then on tuesday to switch to
tuesday, etc. So the dayFilter should NOT apply on the counts of the
dayFacets but it should apply on the rest.

Is this possible?

Regards,
Peter.

On 31 Jan., 11:24, Shay Banon shay.ba...@elasticsearch.com wrote:

Can you explain what you are trying to do, and I will explain how to do that with 650 and the option of running global facets. It sounds like, from what I understand, that you don't need global facets.

-shay.banon

On Monday, January 31, 2011 at 12:06 PM, Karussell wrote:

Hi,

as we discussed in these issues ** there seems to be a way in ES to
enable 'multiselect' when faceting.

Now my problem is: I do not understand the difference between
global=true and issue 650

I've tried different things but I cannot make multi faceting work with
that :frowning:

Or maybe I didn't properly told you what I meant ... and this guy here
can better explain the multiselect feature?

http://www.craftyfella.com/2010/01/faceting-and-multifaceting-syntax-...
(see multi faceting)

Kind Regards,
Peter.

**
https://github.com/elasticsearch/elasticsearch/issues/issue/499

https://github.com/elasticsearch/elasticsearch/issues/issue/650


(system) #11