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
4 changes: 2 additions & 2 deletions docs/reference/elasticsearch/rest-apis/retrievers.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,10 @@ Note, however, that wildcard field patterns will only resolve to fields that eit

### Limitations

- **Single index**: Multi-field queries currently work with single index searches only
- **Single index**: Until 9.2, multi-field queries only work with single index searches.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I think the applies to syntax could be a bit heavy handed here but will defer to @leemthompo for best practices 😁

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah applies_to doesn't work in every scenario :)

- **CCS (Cross Cluster Search)**: Multi-field queries do not support remote cluster searches

### Examples

- [RRF with the multi-field query format](retrievers/retrievers-examples.md#retrievers-examples-rrf-multi-field-query-format)
- [Linear retriever with the multi-field query format](retrievers/retrievers-examples.md#retrievers-examples-linear-multi-field-query-format)
- [Linear retriever with the multi-field query format](retrievers/retrievers-examples.md#retrievers-examples-linear-multi-field-query-format)
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,13 @@ public void testMultiIndexMultiFieldsParamsRewrite() {
null
);

// Non-default rank window size
// Non-default rank window size and non-default rank_constant
retriever = new RRFRetrieverBuilder(
null,
List.of("field_1", "field_2", "semantic_field_1", "semantic_field_2"),
"foo2",
DEFAULT_RANK_WINDOW_SIZE * 2,
RRFRetrieverBuilder.DEFAULT_RANK_CONSTANT,
RRFRetrieverBuilder.DEFAULT_RANK_CONSTANT * 2,
new float[0]
);
assertMultiIndexMultiFieldsParamsRewrite(
Expand Down