I was unable to extract your exact problem in your question. Can you please take some more time and write up, what is not working as expected? Preferrably with examples (index creation, document creation, sample query, full mapping). Thanks!
I had figure what the caused of my trouble. My question is : although i set my field to "not_analyzed", but it actually still with "analyzed" when i do query with elasticsearch.
What i found is that, i have wrong setting for my index & template. After I update my _template then everythings work well.
FYI: Updating your template will not update your index, but only if you create a new index. Also you cannot change a mapping from analyzed to not_analyzed once it has been created.
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.