Skip to content

Commit 272b202

Browse files
Merge branch 'main' into views_rest_crud
2 parents 9a2844c + 8c2f569 commit 272b202

File tree

26 files changed

+1719
-57
lines changed

26 files changed

+1719
-57
lines changed

docs/changelog/138745.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 138745
2+
summary: Disk usage don't include synthetic `_id` postings
3+
area: Distributed
4+
type: enhancement
5+
issues: []

docs/reference/aggregations/search-aggregations-metrics-percentile-rank-aggregation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ The response will look like this:
4949
"aggregations": {
5050
"load_time_ranks": {
5151
"values": {
52-
"500.0": 55.0,
53-
"600.0": 64.0
52+
"500.0": 90.01,
53+
"600.0": 100.0
5454
}
5555
}
5656
}
@@ -60,7 +60,7 @@ The response will look like this:
6060
% TESTRESPONSE[s/"500.0": 55.0/"500.0": 55.00000000000001/]
6161
% TESTRESPONSE[s/"600.0": 64.0/"600.0": 64.0/]
6262

63-
From this information you can determine you are hitting the 99% load time target but not quite hitting the 95% load time target
63+
From this information you can determine you are hitting the 99% load time target but not quite hitting the 95% load time target.
6464

6565
## Keyed Response [_keyed_response_5]
6666

docs/reference/enrich-processor/network-direction-processor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ mapped_pages:
99

1010
Calculates the network direction given a source IP address, destination IP address, and a list of internal networks.
1111

12-
The network direction processor reads IP addresses from [Elastic Common Schema (ECS)][Elastic Common Schema (ECS)](ecs://reference/index.md)) fields by default. If you use the ECS, only the `internal_networks` option must be specified.
12+
The network direction processor reads IP addresses from [Elastic Common Schema (ECS)](ecs://reference/index.md) fields by default. If you use the ECS, only the `internal_networks` option must be specified.
1313

1414
$$$network-direction-options$$$
1515

server/src/main/java/org/elasticsearch/action/admin/indices/diskusage/IndexDiskUsageAnalyzer.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
import org.elasticsearch.core.CheckedConsumer;
5757
import org.elasticsearch.core.IOUtils;
5858
import org.elasticsearch.index.codec.postings.ES812PostingsFormat;
59+
import org.elasticsearch.index.mapper.SyntheticIdField;
5960
import org.elasticsearch.index.shard.ShardId;
6061
import org.elasticsearch.index.store.LuceneFilesExtensions;
6162

@@ -368,6 +369,12 @@ void analyzeInvertedIndex(SegmentReader reader, IndexDiskUsageStats stats) throw
368369
if (terms == null) {
369370
continue;
370371
}
372+
if (SyntheticIdField.hasSyntheticIdAttributes(field.attributes())) {
373+
// Synthetic _id field doesn't have an inverted index stored on disk,
374+
// but it pretends to have one on the read path by setting IndexOptions.DOCS
375+
assert SyntheticIdField.NAME.equals(field.getName()) : "Expected only synthetic id fields to have synthetic id attribute";
376+
continue;
377+
}
371378
// It's expensive to look up every term and visit every document of the postings lists of all terms.
372379
// As we track the min/max positions of read bytes, we just visit the two ends of a partition containing
373380
// the data. We might miss some small parts of the data, but it's an good trade-off to speed up the process.

x-pack/plugin/esql/compute/src/main/generated/org/elasticsearch/compute/aggregation/FirstExponentialHistogramByTimestampAggregatorFunction.java

Lines changed: 187 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/compute/src/main/generated/org/elasticsearch/compute/aggregation/FirstExponentialHistogramByTimestampAggregatorFunctionSupplier.java

Lines changed: 47 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)