This returns Australia and also "United Arab Emirates".
This should only return Australia. Why is it considering Arab has a separate token even though the country field is not_analyzed. Am i doing something wrong?
I suspect it depends on your mapping. The field you are querying is probably analyzed and tokenized on whitespaces, while you may want to use the keyword tokenizer instead but still lowercase it (as a token filter). You can do this using the put mapping api or specify a mapping as part of the create index call if you have one.
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.