term queries do not use an Analyzer to process the text whereas match queries do.
So Amber won't be lower-cased (or whatever your analysis pipeline normally does)
Simply put the match query inside the bool/filter expression and not the term query.
The root query is just the place-marker for where we keep all the document selection criteria. Frequently criteria is complex and requires multiple levels of nested booleans and filters /queries. Having a single root to this tree structure can help unfold the various parts of the logic piece by piece in my experience but I can see for the simple use case it might seem verbose.
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.