Possibly to use current date as synonim?


(Bdfy) #1

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5da5e274-c203-4542-8b10-1a06973764bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Ivan Brusic) #2

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 wrote:

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.
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?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+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.
For more options, visit https://groups.google.com/d/optout.


(system) #3