Skip to content

Commit 48c4166

Browse files
committed
Merge remote-tracking branch 'elastic/master' into default-copy-settings-to-true
* elastic/master: [DOCS] Restores 7.0.0 release notes and highlights Remove assert statements from field caps documentation. (#30601) Repository GCS plugin new client library (#30168) HLRestClient: Follow-up for put index template api (#30592) Unmute IndexUpgradeIT tests [DOCS] Remove references to changelog and to highlights Side-step pending deletes check (#30571) [DOCS] Remove references to removed changelog Revert "Mute ML upgrade test (#30458)" [ML] Adjust BWC version following backport of #30125 [Docs] Improve section detailing translog usage (#30573) [Tests] Relax allowed delta in extended_stats aggregation (#30569) [ML] Reverse engineer Grok patterns from categorization results (#30125) Update build file due to doc file rename Remove the changelog (#30593) Fix issue with finishing handshake in ssl driver (#30580) Fail if reading from closed KeyStoreWrapper (#30394) Silence IndexUpgradeIT test failures. (#30430)
2 parents b46d4b2 + 5894e35 commit 48c4166

File tree

109 files changed

+4151
-1292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+4151
-1292
lines changed

client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/SearchDocumentationIT.java

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@
9898
import java.util.concurrent.TimeUnit;
9999

100100
import static org.elasticsearch.index.query.QueryBuilders.matchQuery;
101-
import static org.hamcrest.Matchers.contains;
102101
import static org.hamcrest.Matchers.containsInAnyOrder;
103102
import static org.hamcrest.Matchers.containsString;
104103
import static org.hamcrest.Matchers.equalTo;
@@ -725,22 +724,26 @@ public void testFieldCaps() throws Exception {
725724
// end::field-caps-execute
726725

727726
// tag::field-caps-response
728-
assertThat(response.get().keySet(), contains("user"));
729-
Map<String, FieldCapabilities> userResponse = response.getField("user");
730-
731-
assertThat(userResponse.keySet(), containsInAnyOrder("keyword", "text")); // <1>
727+
Map<String, FieldCapabilities> userResponse = response.getField("user"); // <1>
732728
FieldCapabilities textCapabilities = userResponse.get("keyword");
733729

734-
assertTrue(textCapabilities.isSearchable());
735-
assertFalse(textCapabilities.isAggregatable());
730+
boolean isSearchable = textCapabilities.isSearchable();
731+
boolean isAggregatable = textCapabilities.isAggregatable();
736732

737-
assertArrayEquals(textCapabilities.indices(), // <2>
738-
new String[]{"authors", "contributors"});
739-
assertNull(textCapabilities.nonSearchableIndices()); // <3>
740-
assertArrayEquals(textCapabilities.nonAggregatableIndices(), // <4>
741-
new String[]{"authors"});
733+
String[] indices = textCapabilities.indices(); // <2>
734+
String[] nonSearchableIndices = textCapabilities.nonSearchableIndices(); // <3>
735+
String[] nonAggregatableIndices = textCapabilities.nonAggregatableIndices();//<4>
742736
// end::field-caps-response
743737

738+
assertThat(userResponse.keySet(), containsInAnyOrder("keyword", "text"));
739+
740+
assertTrue(isSearchable);
741+
assertFalse(isAggregatable);
742+
743+
assertArrayEquals(indices, new String[]{"authors", "contributors"});
744+
assertNull(nonSearchableIndices);
745+
assertArrayEquals(nonAggregatableIndices, new String[]{"authors"});
746+
744747
// tag::field-caps-execute-listener
745748
ActionListener<FieldCapabilitiesResponse> listener = new ActionListener<FieldCapabilitiesResponse>() {
746749
@Override

docs/CHANGELOG.asciidoc

Lines changed: 0 additions & 257 deletions
This file was deleted.

docs/java-rest/high-level/search/field-caps.asciidoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ information about how each index contributes to the field's capabilities.
7676
--------------------------------------------------
7777
include-tagged::{doc-tests}/SearchDocumentationIT.java[field-caps-response]
7878
--------------------------------------------------
79-
<1> The `user` field has two possible types, `keyword` and `text`.
80-
<2> This field only has type `keyword` in the `authors` and `contributors` indices.
81-
<3> Null, since the field is searchable in all indices for which it has the `keyword` type.
82-
<4> The `user` field is not aggregatable in the `authors` index.
79+
<1> A map with entries for the field's possible types, in this case `keyword` and `text`.
80+
<2> All indices where the `user` field has type `keyword`.
81+
<3> The subset of these indices where the `user` field isn't searchable, or null if it's always searchable.
82+
<4> Another subset of these indices where the `user` field isn't aggregatable, or null if it's always aggregatable.

docs/plugins/repository-gcs.asciidoc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,7 @@ A service account file looks like this:
8484
"private_key_id": "...",
8585
"private_key": "-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----\n",
8686
"client_email": "service-account-for-your-repository@your-project-id.iam.gserviceaccount.com",
87-
"client_id": "...",
88-
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
89-
"token_uri": "https://accounts.google.com/o/oauth2/token",
90-
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
91-
"client_x509_cert_url": "..."
87+
"client_id": "..."
9288
}
9389
----
9490
// NOTCONSOLE
@@ -178,6 +174,12 @@ are marked as `Secure`.
178174
a custom name can be useful to authenticate your cluster when requests
179175
statistics are logged in the Google Cloud Platform. Default to `repository-gcs`
180176

177+
`project_id`::
178+
179+
The Google Cloud project id. This will be automatically infered from the credentials file but
180+
can be specified explicitly. For example, it can be used to switch between projects when the
181+
same credentials are usable for both the production and the development projects.
182+
181183
[[repository-gcs-repository]]
182184
==== Repository Settings
183185

docs/reference/index-modules/translog.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ provide a command-line tool for this, `elasticsearch-translog`.
108108

109109
[WARNING]
110110
The `elasticsearch-translog` tool should *not* be run while Elasticsearch is
111-
running, and you will permanently lose the documents that were contained only in
112-
the translog!
111+
running. If you attempt to run this tool while Elasticsearch is running, you
112+
will permanently lose the documents that were contained only in the translog!
113113

114114
In order to run the `elasticsearch-translog` tool, specify the `truncate`
115115
subcommand as well as the directory for the corrupted translog with the `-d`

docs/reference/index-shared4.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ include::glossary.asciidoc[]
77

88
include::release-notes/highlights.asciidoc[]
99

10-
include::{docdir}/../CHANGELOG.asciidoc[]
10+
include::release-notes.asciidoc[]

docs/reference/release-notes/highlights-7.0.0.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66

77
coming[7.0.0]
88

9-
See also <<breaking-changes-7.0>> and <<release-notes-7.0.0>>.
9+
See also <<breaking-changes-7.0>> and <<release-notes-7.0.0-alpha1>>.

docs/reference/release-notes/highlights.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[[release-highlights]]
22
= {es} Release Highlights
3+
++++
4+
<titleabbrev>Release Highlights</titleabbrev>
5+
++++
36

47
[partintro]
58
--

0 commit comments

Comments
 (0)