Skip to content

Commit

Permalink
validating term query
Browse files Browse the repository at this point in the history
  • Loading branch information
georgewallace committed Nov 7, 2024
1 parent ebdb17a commit 39e32a6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/reference/query-dsl/term-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ GET /_search
}
}
----

// REVIEWED[11.06.24]
[[term-top-level-params]]
==== Top-level parameters for `term`
`<field>`::
Expand Down Expand Up @@ -108,7 +108,7 @@ PUT my-index-000001
----

--

// REVIEWED[11.06.24]
. Index a document with a value of `Quick Brown Foxes!` in the `full_text`
field.
+
Expand All @@ -122,7 +122,7 @@ PUT my-index-000001/_doc/1
}
----
// TEST[continued]

// REVIEWED[11.06.24]
Because `full_text` is a `text` field, {es} changes `Quick Brown Foxes!` to
`[quick, brown, fox]` during analysis.

Expand All @@ -145,7 +145,7 @@ GET my-index-000001/_search?pretty
}
----
// TEST[continued]

// REVIEWED[11.06.24]
Because the `full_text` field no longer contains the *exact* term `Quick Brown
Foxes!`, the `term` query search returns no results.

Expand Down Expand Up @@ -178,7 +178,7 @@ GET my-index-000001/_search?pretty
}
----
// TEST[continued]

// REVIEWED[11.06.24]
Unlike the `term` query, the `match` query analyzes your provided search term,
`Quick Brown Foxes!`, before performing a search. The `match` query then returns
any documents containing the `quick`, `brown`, or `fox` tokens in the
Expand Down Expand Up @@ -219,3 +219,4 @@ in the results.
----
// TESTRESPONSE[s/"took" : 1/"took" : $body.took/]
--
// REVIEWED[11.06.24]

0 comments on commit 39e32a6

Please sign in to comment.