You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/search-lucene-query-architecture.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ Operators associated with a subquery determine whether the query "must be" or "s
92
92
93
93
The query parser restructures the subqueries into a *query tree* (an internal structure representing the query) it passes on to the search engine. In the first stage of query parsing, the query tree looks like this.
94
94
95
-
![Example of a boolean query with searchmode set to any.][2]
95
+
![Conceptual diagram of a boolean query with searchmode set to any.][2]
96
96
97
97
### Supported parsers: Simple and Full Lucene
98
98
@@ -124,7 +124,7 @@ Suppose that we now set "searchMode=all". In this case, the space is interpreted
124
124
125
125
A modified query tree for this query would be as follows, where a matching document is the intersection of all three subqueries:
126
126
127
-
![Example of a boolean query with searchmode set to all.][3]
127
+
![Conceptual diagram of a boolean query with searchmode set to all.][3]
128
128
129
129
> [!NOTE]
130
130
> Choosing "searchMode=any" over "searchMode=all" is a decision best arrived at by running representative queries. Users who are likely to include operators (common when searching document stores) might find results more intuitive if "searchMode=all" informs boolean query constructs. For more about the interplay between "searchMode" and operators, see [Simple query syntax](/rest/api/searchservice/simple-query-syntax-in-azure-search).
@@ -151,7 +151,7 @@ In our example, prior to analysis, the initial query tree has the term "Spacious
151
151
152
152
When the default analyzer processes the term, it will lowercase "ocean view" and "spacious", and remove the comma character. The modified query tree will look as follows:
153
153
154
-
![Example of a boolean query with analyzed terms.][4]
154
+
![Conceptual diagram of a boolean query with analyzed terms.][4]
155
155
156
156
### Testing analyzer behaviors
157
157
@@ -301,7 +301,7 @@ For the **description** field, the index is as follows:
301
301
302
302
Given the inverted indices above, let’s return to the sample query and see how matching documents are found for our example query. Recall that the final query tree looks like this:
303
303
304
-
![Example of a boolean query with analyzed terms.][4]
304
+
![Conceptual diagram of a boolean query with analyzed terms.][4]
305
305
306
306
During query execution, individual queries are executed against the searchable fields independently.
0 commit comments