# Possibly to use current date as synonim?

**URL:** <https://discuss.elastic.co/t/possibly-to-use-current-date-as-synonim/18749>\
**Category:** Elasticsearch\
**Created:** [July 19, 2014, 3:40pm UTC](https://discuss.elastic.co/t/possibly-to-use-current-date-as-synonim/18749 "2014-07-19T15:40:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bdfy](https://avatars.discourse-cdn.com/v4/letter/b/6bbea6/32.png) [@Bdfy](https://discuss.elastic.co/u/Bdfy)\
**Post date:** [July 19, 2014, 3:40pm UTC](https://discuss.elastic.co/t/possibly-to-use-current-date-as-synonim/18749/1 "2014-07-19T15:40:33Z")

</div>

[http://stackoverflow.com/questions/24841835/possibly-to-use-current-date-as-synonim#](http://stackoverflow.com/questions/24841835/possibly-to-use-current-date-as-synonim#)

Possibly to use current date as synonim ? For example for query  
"latest/breaking news" I want to get last news in search. How to do it ?

--  
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/5da5e274-c203-4542-8b10-1a06973764bc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5da5e274-c203-4542-8b10-1a06973764bc%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [July 21, 2014, 5:15pm UTC](https://discuss.elastic.co/t/possibly-to-use-current-date-as-synonim/18749/2 "2014-07-21T17:15:45Z")

</div>

It would not be possible in Elasticsearch and it would be something that  
should be handled on the client. Synonyms do not work at the semantic  
level. The word "latest" has no special meaning and all that synonyms do is  
create additional tokens for the same position in a sentence. Your date  
field is probably (should be) a separate field from your your free text  
content. Synonyms work on the same field.

You would probably need to pre-scan your queries and identify words that  
might influence additional filters.

Cheers,

Ivan

On Sat, Jul 19, 2014 at 8:40 AM, Bdfy [ivan.siyanko@gmail.com](mailto:ivan.siyanko@gmail.com) wrote:

> [http://stackoverflow.com/questions/24841835/possibly-to-use-current-date-as-synonim#](http://stackoverflow.com/questions/24841835/possibly-to-use-current-date-as-synonim#)
> 
> Possibly to use current date as synonim ? For example for query  
> "latest/breaking news" I want to get last news in search. How to do it ?
> 
> --  
> 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/5da5e274-c203-4542-8b10-1a06973764bc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5da5e274-c203-4542-8b10-1a06973764bc%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/5da5e274-c203-4542-8b10-1a06973764bc%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/5da5e274-c203-4542-8b10-1a06973764bc%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/CALY%3DcQAmfhZvF1\_2DczNj9CXjKhr%2BZ92dM9V54pzaczOTZaccg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQAmfhZvF1_2DczNj9CXjKhr%2BZ92dM9V54pzaczOTZaccg%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:14am UTC](https://discuss.elastic.co/t/possibly-to-use-current-date-as-synonim/18749/3 "2017-07-06T01:14:30Z")

</div>

Closed on July 6, 2017, 1:14am UTC


