# How to index/search a collection of postcards?

**URL:** <https://discuss.elastic.co/t/how-to-index-search-a-collection-of-postcards/16395>\
**Category:** Elasticsearch\
**Created:** [March 16, 2014, 6:12pm UTC](https://discuss.elastic.co/t/how-to-index-search-a-collection-of-postcards/16395 "2014-03-16T18:12:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@Stefan1](https://discuss.elastic.co/u/Stefan1)\
**Post date:** [March 16, 2014, 6:12pm UTC](https://discuss.elastic.co/t/how-to-index-search-a-collection-of-postcards/16395/1 "2014-03-16T18:12:03Z")

</div>

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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [March 17, 2014, 3:43pm UTC](https://discuss.elastic.co/t/how-to-index-search-a-collection-of-postcards/16395/2 "2014-03-17T15:43:17Z")

</div>

Hey,

there is a path hierchary tokenizer, which could help you a bit, see

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

However, even a prefix query might be sufficient to solve this problem, or  
even a prefix filter, see

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Hope this helps...

--Alex

On Sun, Mar 16, 2014 at 7:12 PM, Stefan [stefan.glaesser@gmail.com](mailto:stefan.glaesser@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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@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)[https://groups.google.com/d/msgid/elasticsearch/165aebaf-7c19-4f87-920a-a2dec81948d7%40googlegroups.com?utm\_medium=email&utm\_source=footer](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](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+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-7qPdjXVhFuCMUp81sC30nGE66JD0\_5DOnO23RBgEsiQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM-7qPdjXVhFuCMUp81sC30nGE66JD0_5DOnO23RBgEsiQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:42am UTC](https://discuss.elastic.co/t/how-to-index-search-a-collection-of-postcards/16395/3 "2017-07-06T01:42:46Z")

</div>


