Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions docs/reference/query-dsl/term-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ GET /_search
}
}
----
// REVIEWED[10.10.24]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way, it'll be unambiguous.

Suggested change
// REVIEWED[10.10.24]
// REVIEWED[OCT. 10.24]


[[term-top-level-params]]
==== Top-level parameters for `term`
Expand Down Expand Up @@ -106,7 +107,7 @@ PUT my-index-000001
}
}
----

// REVIEWED[10.10.24]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// REVIEWED[10.10.24]
// REVIEWED[OCT. 10.24]

--

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

// REVIEWED[10.10.24]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// REVIEWED[10.10.24]
// REVIEWED[OCT. 10.24]

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

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

// REVIEWED[10.10.24]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// REVIEWED[10.10.24]
// REVIEWED[OCT. 10.24]

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

Expand All @@ -163,7 +164,7 @@ field.
POST my-index-000001/_refresh
----
// TEST[continued]

// REVIEWED[10.10.24]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// REVIEWED[10.10.24]
// REVIEWED[OCT. 10.24]

////

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

// REVIEWED[10.10.24]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// REVIEWED[10.10.24]
// REVIEWED[OCT. 10.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 +220,4 @@ in the results.
----
// TESTRESPONSE[s/"took" : 1/"took" : $body.took/]
--
// REVIEWED[10.10.24]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// REVIEWED[10.10.24]
// REVIEWED[OCT. 10.24]

Loading