Hey, there is a path hierchary tokenizer, which could help you a bit, see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/analysis-pathhierarchy-tokenizer.html
However, even a prefix query might be sufficient to solve this problem, or even a prefix filter, see http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-prefix-filter.html Hope this helps... --Alex On Sun, Mar 16, 2014 at 7:12 PM, Stefan <stefan.glaes...@gmail.com> wrote: > Hello, > > I'm new to elasticsearch and I would like to index and search my > collection of postcards. I've > categorized them in a mysql-database in a (sub)category-structure like > this: > > Belgien > -> PLZ-Gebiet 4 > -> PLZ-Gebiet 49 > -> PLZ-Gebiet 496 > Deutschland > -> PLZ-Gebiet 9 > -> PLZ-Gebiet 97 > -> PLZ-Gebiet 970 > > Which is a possible solution to index my postcards and make them > browseable through a category-path? > I also would like to add some facets (e.g. date facet when added a > postcard to collection) when I'm browsing > deeper in the category-paths. > > > Best regards, > Stefan > > -- > 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 elasticsearch+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/165aebaf-7c19-4f87-920a-a2dec81948d7%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/165aebaf-7c19-4f87-920a-a2dec81948d7%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 elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-7qPdjXVhFuCMUp81sC30nGE66JD0_5DOnO23RBgEsiQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.