# Indexing dates as text with synonyms for month and maybe 2/4 digit year

**URL:** <https://discuss.elastic.co/t/indexing-dates-as-text-with-synonyms-for-month-and-maybe-2-4-digit-year/17051>\
**Category:** Elasticsearch\
**Created:** [April 16, 2014, 3:45pm UTC](https://discuss.elastic.co/t/indexing-dates-as-text-with-synonyms-for-month-and-maybe-2-4-digit-year/17051 "2014-04-16T15:45:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![roytmana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roytmana/32/44855_2.png) [@roytmana](https://discuss.elastic.co/u/roytmana)\
**Post date:** [April 16, 2014, 3:45pm UTC](https://discuss.elastic.co/t/indexing-dates-as-text-with-synonyms-for-month-and-maybe-2-4-digit-year/17051/1 "2014-04-16T15:45:23Z")

</div>

Hi,

Is there a filter I can use when indexing a date (ISO date format without  
time) as text field?  
by default it is split on "-" and I would like to keep it and add month  
name as synonym for month number.

on the other note, is there any way to make it not to be split on separate  
tokens when it is fed into \_all field (for which I use standard tokenizer +  
stemming and few other things)?

Thanks,  
Alex

--  
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/2ffced3a-2161-4409-8103-a3fd20835700%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2ffced3a-2161-4409-8103-a3fd20835700%40googlegroups.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:35am UTC](https://discuss.elastic.co/t/indexing-dates-as-text-with-synonyms-for-month-and-maybe-2-4-digit-year/17051/2 "2017-07-06T01:35:29Z")

</div>


