Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.
A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.
Look at the mapping of your field. If you are using dynamic mappings and have not specified mappings yourself, strings will be indexed in analyzed form by default while a non-analyzed form that allows exact matching is indexed as a keyword subfield.
If you are looking for exact matching you should use the keyword subfield or create an index template with a custom mapping for your index.
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.