Full-text queries can work on unstructured text fields. These queries are aware of the analysis process. Full-text queries apply the analyzer on the search terms before performing the actual search operation. It finds out the right analyzer to be applied by first checking if a field-level search_analyzer
is defined, and then by checking if a field-level analyzer is defined. If analyzers at field level are not defined, it tries the analyzer defined at the index level.
The full-text queries are thus aware of the analysis process on the underlying field and apply the right analysis process before forming the actual search queries. These analysis-aware queries are also called high-level queries. Let us understand how the high-level query flow works.
Here, we can see how one high-level query on the field title will be executed. Remember from our index definition earlier that the title field is of the text
type. At indexing time, the value is analyzed using the analyzer...