Skip to content

Commit 51abc42

Browse files
review term-query examples
1 parent f97532e commit 51abc42

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/reference/query-dsl/term-query.asciidoc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ GET /_search
3838
}
3939
}
4040
----
41+
// REVIEWED[10.10.24]
4142

4243
[[term-top-level-params]]
4344
==== Top-level parameters for `term`
@@ -106,7 +107,7 @@ PUT my-index-000001
106107
}
107108
}
108109
----
109-
110+
// REVIEWED[10.10.24]
110111
--
111112

112113
. Index a document with a value of `Quick Brown Foxes!` in the `full_text`
@@ -122,7 +123,7 @@ PUT my-index-000001/_doc/1
122123
}
123124
----
124125
// TEST[continued]
125-
126+
// REVIEWED[10.10.24]
126127
Because `full_text` is a `text` field, {es} changes `Quick Brown Foxes!` to
127128
`[quick, brown, fox]` during analysis.
128129

@@ -145,7 +146,7 @@ GET my-index-000001/_search?pretty
145146
}
146147
----
147148
// TEST[continued]
148-
149+
// REVIEWED[10.10.24]
149150
Because the `full_text` field no longer contains the *exact* term `Quick Brown
150151
Foxes!`, the `term` query search returns no results.
151152

@@ -163,7 +164,7 @@ field.
163164
POST my-index-000001/_refresh
164165
----
165166
// TEST[continued]
166-
167+
// REVIEWED[10.10.24]
167168
////
168169

169170
[source,console]
@@ -178,7 +179,7 @@ GET my-index-000001/_search?pretty
178179
}
179180
----
180181
// TEST[continued]
181-
182+
// REVIEWED[10.10.24]
182183
Unlike the `term` query, the `match` query analyzes your provided search term,
183184
`Quick Brown Foxes!`, before performing a search. The `match` query then returns
184185
any documents containing the `quick`, `brown`, or `fox` tokens in the
@@ -219,3 +220,4 @@ in the results.
219220
----
220221
// TESTRESPONSE[s/"took" : 1/"took" : $body.took/]
221222
--
223+
// REVIEWED[10.10.24]

0 commit comments

Comments
 (0)