Skip to content

Commit 2d925c9

Browse files
committed
Merge branch 'master' into index-lifecycle
2 parents b9c04ad + 7d641ba commit 2d925c9

File tree

153 files changed

+4750
-2411
lines changed

Some content is hidden

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

153 files changed

+4750
-2411
lines changed

buildSrc/version.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ lucene = 7.5.0-snapshot-608f0277b0
44
# optional dependencies
55
spatial4j = 0.7
66
jts = 1.15.0
7-
jackson = 2.8.10
7+
jackson = 2.8.11
88
snakeyaml = 1.17
99
# when updating log4j, please update also docs/java-api/index.asciidoc
1010
log4j = 2.11.1

client/rest-high-level/src/main/java/org/elasticsearch/client/RestHighLevelClient.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,11 @@
163163
import org.elasticsearch.search.aggregations.pipeline.derivative.ParsedDerivative;
164164
import org.elasticsearch.search.suggest.Suggest;
165165
import org.elasticsearch.search.suggest.completion.CompletionSuggestion;
166+
import org.elasticsearch.search.suggest.completion.CompletionSuggestionBuilder;
166167
import org.elasticsearch.search.suggest.phrase.PhraseSuggestion;
168+
import org.elasticsearch.search.suggest.phrase.PhraseSuggestionBuilder;
167169
import org.elasticsearch.search.suggest.term.TermSuggestion;
170+
import org.elasticsearch.search.suggest.term.TermSuggestionBuilder;
168171

169172
import java.io.Closeable;
170173
import java.io.IOException;
@@ -1151,11 +1154,11 @@ static List<NamedXContentRegistry.Entry> getDefaultNamedXContents() {
11511154
List<NamedXContentRegistry.Entry> entries = map.entrySet().stream()
11521155
.map(entry -> new NamedXContentRegistry.Entry(Aggregation.class, new ParseField(entry.getKey()), entry.getValue()))
11531156
.collect(Collectors.toList());
1154-
entries.add(new NamedXContentRegistry.Entry(Suggest.Suggestion.class, new ParseField(TermSuggestion.NAME),
1157+
entries.add(new NamedXContentRegistry.Entry(Suggest.Suggestion.class, new ParseField(TermSuggestionBuilder.SUGGESTION_NAME),
11551158
(parser, context) -> TermSuggestion.fromXContent(parser, (String)context)));
1156-
entries.add(new NamedXContentRegistry.Entry(Suggest.Suggestion.class, new ParseField(PhraseSuggestion.NAME),
1159+
entries.add(new NamedXContentRegistry.Entry(Suggest.Suggestion.class, new ParseField(PhraseSuggestionBuilder.SUGGESTION_NAME),
11571160
(parser, context) -> PhraseSuggestion.fromXContent(parser, (String)context)));
1158-
entries.add(new NamedXContentRegistry.Entry(Suggest.Suggestion.class, new ParseField(CompletionSuggestion.NAME),
1161+
entries.add(new NamedXContentRegistry.Entry(Suggest.Suggestion.class, new ParseField(CompletionSuggestionBuilder.SUGGESTION_NAME),
11591162
(parser, context) -> CompletionSuggestion.fromXContent(parser, (String)context)));
11601163
return entries;
11611164
}

client/sniffer/licenses/jackson-core-2.8.10.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
876ead1db19f0c9e79c9789273a3ef8c6fd6c29b

distribution/packages/src/common/systemd/elasticsearch.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ After=network-online.target
66

77
[Service]
88
RuntimeDirectory=elasticsearch
9+
PrivateTmp=true
910
Environment=ES_HOME=/usr/share/elasticsearch
1011
Environment=ES_PATH_CONF=${path.conf}
1112
Environment=PID_DIR=/var/run/elasticsearch

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,10 @@ Aggregations::
2121
* The Percentiles and PercentileRanks aggregations now return `null` in the REST response,
2222
instead of `NaN`. This makes it consistent with the rest of the aggregations. Note:
2323
this only applies to the REST response, the java objects continue to return `NaN` (also
24-
consistent with other aggregations)
24+
consistent with other aggregations)
25+
26+
Suggesters::
27+
* Plugins that register suggesters can now define their own types of suggestions and must
28+
explicitly indicate the type of suggestion that they produce. Existing plugins will
29+
require changes to their plugin registration. See the `custom-suggester` example
30+
plugin {pull}30284[#30284]

docs/reference/setup/important-settings.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The following settings *must* be considered before going to production:
1414
* <<heap-size,Heap size>>
1515
* <<heap-dump-path,Heap dump path>>
1616
* <<gc-logging,GC logging>>
17+
* <<es-tmpdir,Temp directory>>
1718

1819
include::important-settings/path-settings.asciidoc[]
1920

@@ -31,4 +32,6 @@ include::important-settings/heap-dump-path.asciidoc[]
3132

3233
include::important-settings/gc-logging.asciidoc[]
3334

35+
include::important-settings/es-tmpdir.asciidoc[]
36+
3437
include::important-settings/error-file.asciidoc[]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[[es-tmpdir]]
2+
=== Temp directory
3+
4+
By default, Elasticsearch uses a private temporary directory that the startup
5+
script creates immediately below the system temporary directory.
6+
7+
On some Linux distributions a system utility will clean files and directories
8+
from `/tmp` if they have not been recently accessed. This can lead to the
9+
private temporary directory being removed while Elasticsearch is running if
10+
features that require the temporary directory are not used for a long time.
11+
This causes problems if a feature that requires the temporary directory is
12+
subsequently used.
13+
14+
If you install Elasticsearch using the `.deb` or `.rpm` packages and run it
15+
under `systemd` then the private temporary directory that Elasticsearch uses
16+
is excluded from periodic cleanup.
17+
18+
However, if you intend to run the `.tar.gz` distribution on Linux for an
19+
extended period then you should consider creating a dedicated temporary
20+
directory for Elasticsearch that is not under a path that will have old files
21+
and directories cleaned from it. This directory should have permissions set
22+
so that only the user that Elasticsearch runs as can access it. Then set the
23+
`$ES_TMPDIR` environment variable to point to it before starting Elasticsearch.

libs/x-content/licenses/jackson-core-2.8.10.jar.sha1

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
876ead1db19f0c9e79c9789273a3ef8c6fd6c29b

0 commit comments

Comments
 (0)