Skip to content

Commit 57ece57

Browse files
committed
Merge branch '6.x' into ccr-6.x
* 6.x: Refactor internal engine [Docs] Fix note in bucket_selector Added release notes for 6.0.0-rc2 [Docs] Fix indentation of examples (#27168) [Docs] Clarify `span_not` query behavior for non-overlapping matches (#27150) [Docs] Remove first person "I" from getting started (#27155)
2 parents 03225b4 + 39ef2c4 commit 57ece57

File tree

13 files changed

+575
-291
lines changed

13 files changed

+575
-291
lines changed

core/src/main/java/org/elasticsearch/index/engine/Engine.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,11 @@ public CommitStats commitStats() {
572572
return new CommitStats(getLastCommittedSegmentInfos());
573573
}
574574

575-
/** get the sequence number service */
575+
/**
576+
* The sequence number service for this engine.
577+
*
578+
* @return the sequence number service
579+
*/
576580
public abstract SequenceNumbersService seqNoService();
577581

578582
/**

core/src/main/java/org/elasticsearch/index/engine/InternalEngine.java

+83-64
Large diffs are not rendered by default.

core/src/main/java/org/elasticsearch/index/seqno/SequenceNumbersService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public SequenceNumbersService(
6666
*
6767
* @return the next assigned sequence number
6868
*/
69-
public long generateSeqNo() {
69+
public final long generateSeqNo() {
7070
return localCheckpointTracker.generateSeqNo();
7171
}
7272

core/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java

+197-204
Large diffs are not rendered by default.

core/src/test/java/org/elasticsearch/index/replication/IndexLevelReplicationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public long addDocument(Iterable<? extends IndexableField> doc) throws IOExcepti
316316
assert documentFailureMessage != null;
317317
throw new IOException(documentFailureMessage);
318318
}
319-
}, null, config);
319+
}, null, null, config);
320320
}
321321
}
322322

core/src/test/java/org/elasticsearch/index/replication/RecoveryDuringReplicationTests.java

+1
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,7 @@ public long addDocument(final Iterable<? extends IndexableField> doc) throws IOE
638638
}
639639
},
640640
null,
641+
null,
641642
config);
642643
}
643644

docs/reference/aggregations/pipeline/bucket-selector-aggregation.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ in the parent multi-bucket aggregation. The specified metric must be numeric and
66
If the script language is `expression` then a numeric return value is permitted. In this case 0.0 will be evaluated as `false`
77
and all other values will evaluate to true.
88

9-
Note: The bucket_selector aggregation, like all pipeline aggregations, executions after all other sibling aggregations. This means that
9+
NOTE: The bucket_selector aggregation, like all pipeline aggregations, executions after all other sibling aggregations. This means that
1010
using the bucket_selector aggregation to filter the returned buckets in the response does not save on execution time running the aggregations.
1111

1212
==== Syntax

docs/reference/getting-started.asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Here are a few sample use-cases that Elasticsearch could be used for:
1313
* You run a price alerting platform which allows price-savvy customers to specify a rule like "I am interested in buying a specific electronic gadget and I want to be notified if the price of gadget falls below $X from any vendor within the next month". In this case you can scrape vendor prices, push them into Elasticsearch and use its reverse-search (Percolator) capability to match price movements against customer queries and eventually push the alerts out to the customer once matches are found.
1414
* You have analytics/business-intelligence needs and want to quickly investigate, analyze, visualize, and ask ad-hoc questions on a lot of data (think millions or billions of records). In this case, you can use Elasticsearch to store your data and then use Kibana (part of the Elasticsearch/Logstash/Kibana stack) to build custom dashboards that can visualize aspects of your data that are important to you. Additionally, you can use the Elasticsearch aggregations functionality to perform complex business intelligence queries against your data.
1515

16-
For the rest of this tutorial, I will guide you through the process of getting Elasticsearch up and running, taking a peek inside it, and performing basic operations like indexing, searching, and modifying your data. At the end of this tutorial, you should have a good idea of what Elasticsearch is, how it works, and hopefully be inspired to see how you can use it to either build sophisticated search applications or to mine intelligence from your data.
16+
For the rest of this tutorial, you will be guided through the process of getting Elasticsearch up and running, taking a peek inside it, and performing basic operations like indexing, searching, and modifying your data. At the end of this tutorial, you should have a good idea of what Elasticsearch is, how it works, and hopefully be inspired to see how you can use it to either build sophisticated search applications or to mine intelligence from your data.
1717
--
1818

1919
== Basic Concepts
@@ -660,7 +660,7 @@ Now that we've gotten a glimpse of the basics, let's try to work on a more reali
660660
--------------------------------------------------
661661
// NOTCONSOLE
662662

663-
For the curious, I generated this data from http://www.json-generator.com/[`www.json-generator.com/`] so please ignore the actual values and semantics of the data as these are all randomly generated.
663+
For the curious, this data was generated using http://www.json-generator.com/[`www.json-generator.com/`], so please ignore the actual values and semantics of the data as these are all randomly generated.
664664

665665
[float]
666666
=== Loading the Sample Dataset
@@ -1284,4 +1284,4 @@ There are many other aggregations capabilities that we won't go into detail here
12841284

12851285
== Conclusion
12861286

1287-
Elasticsearch is both a simple and complex product. We've so far learned the basics of what it is, how to look inside of it, and how to work with it using some of the REST APIs. I hope that this tutorial has given you a better understanding of what Elasticsearch is and more importantly, inspired you to further experiment with the rest of its great features!
1287+
Elasticsearch is both a simple and complex product. We've so far learned the basics of what it is, how to look inside of it, and how to work with it using some of the REST APIs. Hopefully this tutorial has given you a better understanding of what Elasticsearch is and more importantly, inspired you to further experiment with the rest of its great features!

docs/reference/query-dsl/common-terms-query.asciidoc

+13-13
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ GET /_search
7676
"common": {
7777
"body": {
7878
"query": "this is bonsai cool",
79-
"cutoff_frequency": 0.001
79+
"cutoff_frequency": 0.001
8080
}
8181
}
8282
}
@@ -100,8 +100,8 @@ GET /_search
100100
"common": {
101101
"body": {
102102
"query": "nelly the elephant as a cartoon",
103-
"cutoff_frequency": 0.001,
104-
"low_freq_operator": "and"
103+
"cutoff_frequency": 0.001,
104+
"low_freq_operator": "and"
105105
}
106106
}
107107
}
@@ -200,11 +200,11 @@ GET /_search
200200
"common": {
201201
"body": {
202202
"query": "nelly the elephant not as a cartoon",
203-
"cutoff_frequency": 0.001,
204-
"minimum_should_match": {
205-
"low_freq" : 2,
206-
"high_freq" : 3
207-
}
203+
"cutoff_frequency": 0.001,
204+
"minimum_should_match": {
205+
"low_freq" : 2,
206+
"high_freq" : 3
207+
}
208208
}
209209
}
210210
}
@@ -261,11 +261,11 @@ GET /_search
261261
"common": {
262262
"body": {
263263
"query": "how not to be",
264-
"cutoff_frequency": 0.001,
265-
"minimum_should_match": {
266-
"low_freq" : 2,
267-
"high_freq" : 3
268-
}
264+
"cutoff_frequency": 0.001,
265+
"minimum_should_match": {
266+
"low_freq" : 2,
267+
"high_freq" : 3
268+
}
269269
}
270270
}
271271
}

docs/reference/query-dsl/span-not-query.asciidoc

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
[[query-dsl-span-not-query]]
22
=== Span Not Query
33

4-
Removes matches which overlap with another span query. The span not
4+
Removes matches which overlap with another span query or which are
5+
within x tokens before (controlled by the parameter `pre`) or y tokens
6+
after (controled by the parameter `post`) another SpanQuery. The span not
57
query maps to Lucene `SpanNotQuery`. Here is an example:
68

79
[source,js]
@@ -39,7 +41,7 @@ In the above example all documents with the term hoya are filtered except the on
3941
Other top level options:
4042

4143
[horizontal]
42-
`pre`:: If set the amount of tokens before the include span can't have overlap with the exclude span.
43-
`post`:: If set the amount of tokens after the include span can't have overlap with the exclude span.
44+
`pre`:: If set the amount of tokens before the include span can't have overlap with the exclude span. Defaults to 0.
45+
`post`:: If set the amount of tokens after the include span can't have overlap with the exclude span. Defaults to 0.
4446
`dist`:: If set the amount of tokens from within the include span can't have overlap with the exclude span. Equivalent
4547
of setting both `pre` and `post`.

docs/reference/release-notes.asciidoc

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
--
66
This section summarizes the changes in each release.
77

8+
* <<release-notes-6.0.0-rc2>>
89
* <<release-notes-6.0.0-rc1>>
910
* <<release-notes-6.0.0-beta2>>
1011
* <<release-notes-6.0.0-beta1>>
@@ -13,6 +14,7 @@ This section summarizes the changes in each release.
1314
* <<release-notes-6.0.0-alpha1-5x>>
1415

1516
--
17+
include::release-notes/6.0.0-rc2.asciidoc[]
1618
include::release-notes/6.0.0-rc1.asciidoc[]
1719
include::release-notes/6.0.0-beta2.asciidoc[]
1820
include::release-notes/6.0.0-beta1.asciidoc[]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
[[release-notes-6.0.0-rc2]]
2+
== 6.0.0-rc2 Release Notes
3+
4+
Also see <<breaking-changes-6.0>>.
5+
6+
[[breaking-6.0.0-rc2]]
7+
[float]
8+
=== Breaking changes
9+
10+
Inner Hits::
11+
* Return the _source of inner hit nested as is without wrapping it into its full path context {pull}26982[#26982] (issues: {issue}26102[#26102], {issue}26944[#26944])
12+
13+
14+
15+
[[enhancement-6.0.0-rc2]]
16+
[float]
17+
=== Enhancements
18+
19+
Core::
20+
* Ignore .DS_Store files on macOS {pull}27108[#27108] (issue: {issue}23982[#23982])
21+
22+
Index Templates::
23+
* Fix error message for a put index template request without index_patterns {pull}27102[#27102] (issue: {issue}27100[#27100])
24+
25+
Mapping::
26+
* Don't detect source's XContentType in DocumentParser.parseDocument() {pull}26880[#26880]
27+
28+
Network::
29+
* Add additional low-level logging handler {pull}26887[#26887]
30+
* Unwrap causes when maybe dying {pull}26884[#26884]
31+
32+
Plugins::
33+
* Adjust SHA-512 supported format on plugin install {pull}27093[#27093]
34+
35+
REST::
36+
* Cat shards bytes {pull}26952[#26952]
37+
38+
39+
40+
[[bug-6.0.0-rc2]]
41+
[float]
42+
=== Bug fixes
43+
44+
Aggregations::
45+
* Create weights lazily in filter and filters aggregation {pull}26983[#26983]
46+
* Fix IndexOutOfBoundsException in histograms for NaN doubles (#26787) {pull}26856[#26856] (issue: {issue}26787[#26787])
47+
* Scripted_metric _agg parameter disappears if params are provided {pull}19863[#19863] (issue: {issue}19768[#19768])
48+
49+
CAT API::
50+
* Fix NPE for /_cat/indices when no primary shard {pull}26953[#26953] (issue: {issue}26942[#26942])
51+
52+
Cache::
53+
* Reduce the default number of cached queries. {pull}26949[#26949] (issue: {issue}26938[#26938])
54+
55+
Core::
56+
* Timed runnable should delegate to abstract runnable {pull}27095[#27095] (issue: {issue}27069[#27069])
57+
* Stop invoking non-existent syscall {pull}27016[#27016] (issue: {issue}20179[#20179])
58+
* MetaData Builder doesn't properly prevent an alias with the same name as an index {pull}26804[#26804]
59+
60+
Ingest::
61+
* date processor should not fail if timestamp is specified as json number {pull}26986[#26986] (issue: {issue}26967[#26967])
62+
* date_index_name processor should not fail if timestamp is specified as json number {pull}26910[#26910] (issue: {issue}26890[#26890])
63+
64+
Internal::
65+
* Upgrade Lucene to version 7.0.1 {pull}26926[#26926]
66+
67+
Java High Level REST Client::
68+
* Make ShardSearchTarget optional when parsing ShardSearchFailure {pull}27078[#27078] (issue: {issue}27055[#27055])
69+
70+
Java REST Client::
71+
* rest-client-sniffer: configurable threadfactory {pull}26897[#26897]
72+
73+
Mapping::
74+
* wrong link target for datatype murmur3 {pull}27143[#27143]
75+
76+
Network::
77+
* Check for closed connection while opening {pull}26932[#26932]
78+
79+
Packaging::
80+
* Fix handling of Windows paths containing parentheses {pull}26916[#26916] (issue: {issue}26454[#26454])
81+
82+
Percolator::
83+
* Also support query extraction for queries wrapped inside a ESToParentBlockJoinQuery {pull}26754[#26754]
84+
85+
Plugin Analysis Phonetic::
86+
* Fix beidermorse phonetic token filter for unspecified `languageset` {pull}27112[#27112] (issue: {issue}26771[#26771])
87+
88+
Plugin Repository Azure::
89+
* Use Azure upload method instead of our own implementation {pull}26751[#26751]
90+
91+
REST::
92+
* Fix inconsistencies in the rest api specs for cat.snapshots {pull}26996[#26996] (issues: {issue}25737[#25737], {issue}26923[#26923])
93+
* Fix inconsistencies in the rest api specs for *_script {pull}26971[#26971] (issue: {issue}26923[#26923])
94+
* exists template needs a template name {pull}25988[#25988]
95+
96+
Reindex API::
97+
* Fix update_by_query's default size parameter {pull}26784[#26784] (issue: {issue}26761[#26761])
98+
99+
Search::
100+
* Avoid stack overflow on search phases {pull}27069[#27069] (issue: {issue}27042[#27042])
101+
* Fix search_after with geo distance sorting {pull}26891[#26891]
102+
* Fix serialization errors when cross cluster search goes to a single shard {pull}26881[#26881] (issue: {issue}26833[#26833])
103+
* Early termination with index sorting should not set terminated_early in the response {pull}26597[#26597] (issue: {issue}26408[#26408])
104+
* Format doc values fields. {pull}22146[#22146]
105+
106+
Sequence IDs::
107+
* Fire global checkpoint sync under system context {pull}26984[#26984]
108+
109+
Settings::
110+
* Emit settings deprecation logging on empty update {pull}27017[#27017] (issue: {issue}26419[#26419])
111+
* Fix filtering for ListSetting {pull}26914[#26914]
112+
113+
Stats::
114+
* Keep cumulative elapsed scroll time in microseconds {pull}27068[#27068] (issue: {issue}27046[#27046])
115+
116+
Suggesters::
117+
* Fix division by zero in phrase suggester that causes assertion to fail {pull}27149[#27149]
118+

0 commit comments

Comments
 (0)