I have a set of data setting in elasticsearch, like
{"symbol":"AUD/USD"},{"symbol":"HKD/USD"},{"symbol":"AUD/EUR"}... I would
like to search for "AUD/USD". So the search query string will be "{
"bool":{ "must":{ "query_string":{ "query":"(symbol:AUD/USD)" } } } }". But
the result I got looks that ES used "/" (forward slash) to search any
symbol having "AUD" or "USD" instead of "AUD/USD". I tried with "\/" and I
got a same result.
Dan
On Tuesday, April 15, 2014 4:04:21 PM UTC+1, felix...@gmail.com wrote:
Hi,
I have a set of data setting in elasticsearch, like
{"symbol":"AUD/USD"},{"symbol":"HKD/USD"},{"symbol":"AUD/EUR"}... I would
like to search for "AUD/USD". So the search query string will be "{
"bool":{ "must":{ "query_string":{ "query":"(symbol:AUD/USD)" } } } }". But
the result I got looks that ES used "/" (forward slash) to search any
symbol having "AUD" or "USD" instead of "AUD/USD". I tried with "\/" and I
got a same result.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.