Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import java.util.Locale;
import java.util.Set;

import static org.elasticsearch.index.mapper.FieldMapper.DocValuesParameter.EXTENDED_DOC_VALUES_PARAMS_FF;

/**
* A {@link Set} of "capabilities" supported by the {@link RestEsqlQueryAction}
* and {@link RestEsqlAsyncQueryAction} APIs. These are exposed over the
Expand Down Expand Up @@ -810,6 +812,11 @@ public enum Cap {
*/
SOURCE_FIELD_MAPPING,

/**
* Support for extended doc values params.
*/
EXTENDED_DOC_VALUES_PARAMS(EXTENDED_DOC_VALUES_PARAMS_FF.isEnabled()),

/**
* Allow filter per individual aggregation.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import java.util.List;
import java.util.Set;

import static org.elasticsearch.index.mapper.FieldMapper.DocValuesParameter.EXTENDED_DOC_VALUES_PARAMS_FF;
import static org.elasticsearch.index.mapper.MultiValuedBinaryDocValuesField.SeparateCount.COUNT_FIELD_SUFFIX;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.instanceOf;
Expand All @@ -65,7 +66,7 @@ public static List<Object[]> params() {
for (DocValuesMode docValuesMode : new DocValuesMode[] { DocValuesMode.DEFAULT, DocValuesMode.DOC_VALUES_ONLY }) {
params.add(new Object[] { new StandardSetup(fieldType, multivaluedField, docValuesMode, allowEmpty, 100) });
}
if (fieldType.equals("keyword")) {
if (fieldType.equals("keyword") && EXTENDED_DOC_VALUES_PARAMS_FF.isEnabled()) {
params.add(
new Object[] {
new StandardSetup(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
---
setup:
- requires:
cluster_features: ["mapper.keyword.high_cardinality_length_function_fuse_to_load"]
test_runner_features: [ capabilities ]
capabilities:
- method: POST
path: /_query
parameters: [ ]
capabilities: [ extended_doc_values_params ]
reason: "testing binary doc values search"

- do:
Expand Down