do you remember your talk about ecommerce and ES in Hamburg? :-)

viewing and drilling down in a catalogue is also a valid use case, where 
you need to drill down on hirarchical faceted data.

is there an easy way to do that in ES or do I have to aggregate the facets 
by myself?

kind regards

Am Montag, 31. März 2014 10:11:31 UTC+2 schrieb Alexander Reelsen:
>
> Hey,
>
> havent spent a lot of thought, if or how you can solve this directly, but 
> wouldnt it be much easier if you used different fields like 'continent', 
> 'country', 'state', 'city' and would simply aggregate on those and use it 
> for drill down? Or does it have to be generic and this is just an example?
>
>
> --Alex
>
>
> On Sun, Mar 30, 2014 at 6:05 PM, Volker <[email protected] <javascript:>>wrote:
>
>> dear reader
>>
>> I have a question about facets.
>>
>> I have documents with a path as part of a document.
>>
>> e.g.:
>>
>> /america/
>> /america/usa
>> /america/usa/california
>> /america/usa/new-york
>> /america/mexico
>> /europe/spain
>> /europe/germany
>>
>> I would like to drill down on an area and get a facet count for the next 
>> level.
>>
>> If I filter in the facet e.g. for america I would like to get counts for 
>> - /america/usa
>> - /america/mexico
>>
>> I started with using a prefix filter in the facet to filter e.g. for 
>> america but then I get 
>>
>> - /america/usa
>> - /america/usa/california
>> - /america/usa/new-york
>> - /america/mexico
>>
>> but I would like to get the facet counts for only the next level, so I 
>> can drill down on the area.
>>
>> I tried a search for this topic, but I did not find a solution.
>>
>> Hope that somebody can help.
>>
>> Kind regards
>>
>>
>>
>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "elasticsearch" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/elasticsearch/0f825504-2d93-43ff-ab7f-f2dfd0866816%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/0f825504-2d93-43ff-ab7f-f2dfd0866816%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/d2516db2-416d-4d36-9284-6d145727f5a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to