How to search "X=X" in Elasticsearch

Hi all:

I want search "X=X" in Elasticsearch, and this X equal to X.

just like this:

s=s

w=w

1=1

How to do this?

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

Hi

I'm not totally sure what you are asking for, but my guess would be that
the problem is that your query gets analyzed so the '=' sign is removed.
You can try to use a term query[1] which is a query type that doesn't
analyze the query and treats it as a single term. In order to use it,
please make sure that the field you are searching on is not analyzed[2].

[1]
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-term-query.html
[2]
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-core-types.html

--
Adrien Grand

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