Skip to content

Commit 22f5abb

Browse files
committed
improve
1 parent b808311 commit 22f5abb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

benchmarks/src/main/java/org/elasticsearch/benchmark/xcontent/FilterContentBenchmark.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void setup() throws IOException {
100100
case "all_field":
101101
Set<String> allKeys = new HashSet<>(keys);
102102
allKeys.remove("cluster_uuid");
103-
includesFilters = FilterPath.compile(keys);
103+
includesFilters = FilterPath.compile(allKeys);
104104
break;
105105
case "wildcard_field":
106106
Set<String> wildcardField = new HashSet<>(Arrays.asList("*stats"));
@@ -115,9 +115,9 @@ public void setup() throws IOException {
115115
"*stats*.xpack",
116116
"*stats.*.segments",
117117
"*stat*.*.data*",
118-
"*stats.**.request_cache",
119-
"*stats.**.stat",
120-
"*stats.**.threads",
118+
inclusive ? "*stats.**.request_cache" : "*stats.*.request_cache",
119+
inclusive ? "*stats.**.stat" : "*stats.*.stat",
120+
inclusive ? "*stats.**.threads" : "*stats.*.threads",
121121
"*source_node.t*"
122122
)
123123
);

0 commit comments

Comments
 (0)