Which one of the following is recommended? Both works, but inconsistent.
#1 { "query":{ "bool":{ "must":[ { "term":{ "FIELD":{ "value":"VALUE" } } } ] } } }
#2 { "query":{ "bool":{ "must":[ { "term":{ "FIELD":"value" } } ] } } }
Option 2 is the shorthand way of doing option 1. I do option 2 when I'm typing by hand and option 1 when I'm building the query programatically.
Thanks, Nick. That makes sense.
© 2020. All Rights Reserved - Elasticsearch
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.