Skip to content

Commit 4772917

Browse files
committed
fixing more errors
1 parent 07e7a2c commit 4772917

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

docs/reference/data-analysis/aggregations/search-aggregations-bucket-reverse-nested-aggregation.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,12 @@ GET /issues/_search
7474
}
7575
}
7676
```
77-
% TEST[continued]
78-
% TEST[s/_search/_search?filter_path=aggregations/]
7977

8078
As you can see above, the `reverse_nested` aggregation is put in to a `nested` aggregation as this is the only place in the dsl where the `reverse_nested` aggregation can be used. Its sole purpose is to join back to a parent doc higher up in the nested structure.
8179

8280
1. A `reverse_nested` aggregation that joins back to the root / main document level, because no `path` has been defined. Via the `path` option the `reverse_nested` aggregation can join back to a different level, if multiple layered nested object types have been defined in the mapping
83-
81+
% TEST[continued]
82+
% TEST[s/_search/_search?filter_path=aggregations/]
8483

8584
Possible response snippet:
8685

docs/reference/elasticsearch/rest-apis/reciprocal-rank-fusion.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,13 @@ GET example-index/_search
8989
}
9090
}
9191
```
92-
% TEST[skip:example fragment]
9392

9493
In the above example, we execute the `knn` and `standard` retrievers independently of each other. Then we use the `rrf` retriever to combine the results.
9594

9695
1. First, we execute the kNN search specified by the `knn` retriever to get its global top 50 results.
9796
2. Second, we execute the query specified by the `standard` retriever to get its global top 50 results.
9897
3. Then, on a coordinating node, we combine the kNN search top documents with the query top documents and rank them based on the RRF formula using parameters from the `rrf` retriever to get the combined top documents using the default `size` of `10`.
99-
98+
% TEST[skip:example fragment]
10099

101100
Note that if `k` from a knn search is larger than `rank_window_size`, the results are truncated to `rank_window_size`. If `k` is smaller than `rank_window_size`, the results are `k` size.
102101

@@ -165,14 +164,13 @@ GET example-index/_search
165164
}
166165
}
167166
```
168-
% TEST[skip:example fragment]
169167

170168
In the above example, we execute each of the two `standard` retrievers independently of each other. Then we use the `rrf` retriever to combine the results.
171169

172170
1. First we run the `standard` retriever specifying a term query for `blue shoes sales` using the standard BM25 scoring algorithm.
173171
2. Next we run the `standard` retriever specifying a sparse_vector query for `What blue shoes are on sale?` using our [ELSER](docs-content://solutions/search/semantic-search/semantic-search-elser-ingest-pipelines.md) scoring algorithm.
174172
3. The `rrf` retriever allows us to combine the two top documents sets generated by completely independent scoring algorithms with equal weighting.
175-
173+
% TEST[skip:example fragment]
176174

177175
Not only does this remove the need to figure out what the appropriate weighting is using linear combination, but RRF is also shown to give improved relevance over either query individually.
178176

0 commit comments

Comments
 (0)