Skip to content
Closed
Show file tree
Hide file tree
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
14 changes: 7 additions & 7 deletions docs/reference/mapping/types/keyword.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ PUT my-index-000001
}
}
--------------------------------

// REVIEWED[11.06.24]
[TIP]
.Mapping numeric identifiers
====
Expand Down Expand Up @@ -205,7 +205,7 @@ PUT idx/_doc/1
}
----
// TEST[s/$/\nGET idx\/_doc\/1?filter_path=_source\n/]

// REVIEWED[11.06.24]
Will become:

[source,console-result]
Expand All @@ -215,7 +215,7 @@ Will become:
}
----
// TEST[s/^/{"_source":/ s/\n$/}/]

// REVIEWED[11.06.24]
If a `keyword` field sets `store` to `true` then order and duplicates
are preserved. For example:
[source,console,id=synthetic-source-keyword-example-stored]
Expand Down Expand Up @@ -243,7 +243,7 @@ PUT idx/_doc/1
}
----
// TEST[s/$/\nGET idx\/_doc\/1?filter_path=_source\n/]

// REVIEWED[11.06.24]
Will become:

[source,console-result]
Expand All @@ -253,7 +253,7 @@ Will become:
}
----
// TEST[s/^/{"_source":/ s/\n$/}/]

// REVIEWED[11.06.24]
Values longer than `ignore_above` are preserved but sorted to the end.
For example:
[source,console,id=synthetic-source-keyword-example-ignore-above]
Expand Down Expand Up @@ -281,7 +281,7 @@ PUT idx/_doc/1
}
----
// TEST[s/$/\nGET idx\/_doc\/1?filter_path=_source\n/]

// REVIEWED[11.06.24]
Will become:

[source,console-result]
Expand All @@ -291,7 +291,7 @@ Will become:
}
----
// TEST[s/^/{"_source":/ s/\n$/}/]

// REVIEWED[11.06.24]

include::constant-keyword.asciidoc[]

Expand Down
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]
11 changes: 6 additions & 5 deletions docs/reference/query-dsl/terms-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ GET /_search
}
}
----

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

// REVIEWED[11.06.24]
. Index a document with an ID of 1 and values of `["blue", "green"]` in the
`color` field.
+
Expand All @@ -157,7 +157,7 @@ PUT my-index-000001/_doc/1
----
// TEST[continued]
--

// REVIEWED[11.06.24]
. Index another document with an ID of 2 and value of `blue` in the `color`
field.
+
Expand All @@ -172,7 +172,7 @@ PUT my-index-000001/_doc/2
----
// TEST[continued]
--

// REVIEWED[11.06.24]
. Use the `terms` query with terms lookup parameters to find documents
containing one or more of the same terms as document 2. Include the `pretty`
parameter so the response is more readable.
Expand Down Expand Up @@ -205,7 +205,7 @@ GET my-index-000001/_search?pretty
}
----
// TEST[continued]

// REVIEWED[11.06.24]
Because document 2 and document 1 both contain `blue` as a value in the `color`
field, {es} returns both documents.

Expand Down Expand Up @@ -252,3 +252,4 @@ field, {es} returns both documents.
----
// TESTRESPONSE[s/"took" : 17/"took" : $body.took/]
--
// REVIEWED[11.06.24]