-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Adds transport-only flag to always include indices in the field caps transport response #133074
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
cf28b6d
a882eea
24a384a
8bcae2c
871465a
d5e9068
884a356
ee62b96
ffd4eb8
ce99d88
5956d21
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| pr: 133074 | ||
| summary: Adds transport-only flag to always include indices in the field caps transport | ||
| response | ||
| area: Mapping | ||
| type: enhancement | ||
| issues: [] |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,6 +53,7 @@ public final class FieldCapabilitiesRequest extends LegacyActionRequest implemen | |
| private String[] types = Strings.EMPTY_ARRAY; | ||
| private boolean includeUnmapped = false; | ||
| private boolean includeEmptyFields = true; | ||
| private boolean includeIndices = false; | ||
|
||
| // pkg private API mainly for cross cluster search to signal that we do multiple reductions ie. the results should not be merged | ||
| private boolean mergeResults = true; | ||
| private QueryBuilder indexFilter; | ||
|
|
@@ -208,6 +209,11 @@ public FieldCapabilitiesRequest includeEmptyFields(boolean includeEmptyFields) { | |
| return this; | ||
| } | ||
|
|
||
| public FieldCapabilitiesRequest includeIndices(boolean includeIndices) { | ||
| this.includeIndices = includeIndices; | ||
| return this; | ||
| } | ||
|
|
||
| @Override | ||
| public String[] indices() { | ||
| return indices; | ||
|
|
@@ -232,6 +238,10 @@ public boolean includeUnmapped() { | |
| return includeUnmapped; | ||
| } | ||
|
|
||
| public boolean includeIndices() { | ||
| return includeIndices; | ||
| } | ||
|
|
||
| public boolean includeEmptyFields() { | ||
| return includeEmptyFields; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.