Skip to content

Commit

Permalink
adding new capability to define support for propagating inner hits
Browse files Browse the repository at this point in the history
  • Loading branch information
pmpailis committed Nov 12, 2024
1 parent a34ec4e commit 1172be3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ private SearchCapabilities() {}
private static final String KQL_QUERY_SUPPORTED = "kql_query";
/** Support multi-dense-vector field mapper. */
private static final String MULTI_DENSE_VECTOR_FIELD_MAPPER = "multi_dense_vector_field_mapper";
/** Support propagating nested retrievers' inner_hits to top-level compound retrievers . */
private static final String NESTED_RETRIEVER_INNER_HITS_SUPPORT = "nested_retriever_inner_hits_support";

public static final Set<String> CAPABILITIES;
static {
Expand All @@ -45,6 +47,7 @@ private SearchCapabilities() {}
capabilities.add(BYTE_FLOAT_BIT_DOT_PRODUCT_CAPABILITY);
capabilities.add(DENSE_VECTOR_DOCVALUE_FIELDS);
capabilities.add(TRANSFORM_RANK_RRF_TO_RETRIEVER);
capabilities.add(NESTED_RETRIEVER_INNER_HITS_SUPPORT);
if (MultiDenseVectorFieldMapper.FEATURE_FLAG.isEnabled()) {
capabilities.add(MULTI_DENSE_VECTOR_FIELD_MAPPER);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,13 @@ setup:

---
"rrf retriever with inner_hits for sub-retriever":
- requires:
capabilities:
- method: POST
path: /_search
capabilities: [ nested_retriever_inner_hits_support ]
test_runner_features: capabilities
reason: "Support for propagating nested retrievers' inner hits to the top-level compound retriever is required"

- do:
search:
Expand Down

0 comments on commit 1172be3

Please sign in to comment.