Skip to content

Commit 145c513

Browse files
bzhangamkolchfa-awsnatebower
authored
Documentation for native MMR support (#11024)
* Documentation for native MMR support Signed-off-by: Bo Zhang <[email protected]> * Doc review Signed-off-by: Fanit Kolchina <[email protected]> * Address questions answered Signed-off-by: Fanit Kolchina <[email protected]> * Apply suggestions from code review Signed-off-by: Nathan Bower <[email protected]> --------- Signed-off-by: Bo Zhang <[email protected]> Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: Nathan Bower <[email protected]> Co-authored-by: Fanit Kolchina <[email protected]> Co-authored-by: Nathan Bower <[email protected]>
1 parent 624428c commit 145c513

24 files changed

+237
-40
lines changed

_search-plugins/search-pipelines/collapse-processor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: default
33
title: Collapse
44
nav_order: 10
55
has_children: false
6-
parent: Search processors
6+
parent: User-defined search processors
77
grand_parent: Search pipelines
88
---
99

_search-plugins/search-pipelines/explanation-processor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: default
33
title: Hybrid score explanation
44
nav_order: 15
55
has_children: false
6-
parent: Search processors
6+
parent: User-defined search processors
77
grand_parent: Search pipelines
88
---
99

_search-plugins/search-pipelines/filter-query-processor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: default
33
title: Filter query
44
nav_order: 20
55
has_children: false
6-
parent: Search processors
6+
parent: User-defined search processors
77
grand_parent: Search pipelines
88
---
99

_search-plugins/search-pipelines/index.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,22 @@ redirect_from:
1010

1111
# Search pipelines
1212

13-
You can use _search pipelines_ to build new or reuse existing result rerankers, query rewriters, and other components that operate on queries or results. Search pipelines make it easier for you to process search queries and search results within OpenSearch. Moving some of your application functionality into an OpenSearch search pipeline reduces the overall complexity of your application. As part of a search pipeline, you specify a list of processors that perform modular tasks. You can then easily add or reorder these processors to customize search results for your application.
13+
You can use _search pipelines_ to build new or reuse existing result rerankers, query rewriters, and other components that operate on queries or results. Search pipelines make it easier for you to process search queries and search results within OpenSearch. Moving some of your application functionality into an OpenSearch search pipeline reduces the overall complexity of your application. As part of a search pipeline, you specify a list of search processors that perform modular tasks. You can then easily add or reorder these processors to customize search results for your application.
1414

15-
## Terminology
16-
17-
The following is a list of search pipeline terminology:
18-
19-
* [_Search request processor_]({{site.url}}{{site.baseurl}}/search-plugins/search-pipelines/search-processors#search-request-processors): A component that intercepts a search request (the query and the metadata passed in the request), performs an operation with or on the search request, and returns the search request.
20-
* [_Search response processor_]({{site.url}}{{site.baseurl}}/search-plugins/search-pipelines/search-processors#search-response-processors): A component that intercepts a search response and search request (the query, results, and metadata passed in the request), performs an operation with or on the search response, and returns the search response.
21-
* [_Search phase results processor_]({{site.url}}{{site.baseurl}}/search-plugins/search-pipelines/search-processors#search-phase-results-processors): A component that runs between search phases at the coordinating node level. A search phase results processor intercepts the results retrieved from one search phase and transforms them before passing them to the next search phase.
22-
* [_Processor_]({{site.url}}{{site.baseurl}}/search-plugins/search-pipelines/search-processors/): Either a search request processor or a search response processor.
23-
* _Search pipeline_: An ordered list of processors that is integrated into OpenSearch. The pipeline intercepts a query, performs processing on the query, sends it to OpenSearch, intercepts the results, performs processing on the results, and returns them to the calling application, as shown in the following diagram.
15+
When defined, a search pipeline is an ordered list of search processors that is integrated into OpenSearch. The pipeline shown in the following diagram intercepts a query, performs processing on the query, sends it to OpenSearch, intercepts the results, performs processing on the results, and returns them to the calling application.
2416

2517
![Search processor diagram]({{site.url}}{{site.baseurl}}/images/search-pipelines.png)
2618

2719
Both request and response processing for the pipeline are performed on the coordinator node, so there is no shard-level processing.
2820
{: .note}
2921

30-
## Processors
22+
## Search processors
3123

32-
To learn more about available search processors, see [Search processors]({{site.url}}{{site.baseurl}}/search-plugins/search-pipelines/search-processors/).
24+
Search processors can be classified by **execution phase** (when they run):
3325

26+
- [Search request processors]({{site.url}}{{site.baseurl}}/search-plugins/search-pipelines/search-processors#search-request-processors): A _search request processor_ intercepts a search request (the query and the metadata passed in the request), performs an operation with or on the search request, and submits the search request to the index.
27+
- [Search response processors]({{site.url}}{{site.baseurl}}/search-plugins/search-pipelines/search-processors#search-response-processors): A _search response processor_ intercepts a search response and search request (the query, results, and metadata passed in the request), performs an operation with or on the search response, and returns the search response.
28+
- [Search phase results processors]({{site.url}}{{site.baseurl}}/search-plugins/search-pipelines/search-processors#search-phase-results-processors): A _search phase results processor_ runs between search phases at the coordinating node level. It intercepts the results retrieved from one search phase and transforms them before passing them to the next search phase.
3429

3530
## Example
3631

@@ -77,6 +72,12 @@ Alternatively, you can use a temporary pipeline with a request or set a default
7772

7873
To learn about retrieving details for an existing search pipeline, see [Retrieving search pipelines]({{site.url}}{{site.baseurl}}/search-plugins/search-pipelines/retrieving-search-pipeline/).
7974

75+
## Manual and automatic processor creation
76+
77+
Search processors can be created manually or automatically:
78+
79+
- [User-defined processors]({{site.url}}{{site.baseurl}}/search-plugins/search-pipelines/search-processors): Processors configured manually in search pipelines, like in the preceding [example](#example).
80+
- [System-generated processors]({{site.url}}{{site.baseurl}}/search-plugins/search-pipelines/system-generated-search-processors/): Processors automatically created by OpenSearch based on search request parameters.
8081

8182
## Search pipeline metrics
8283

_search-plugins/search-pipelines/ml-inference-search-request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: default
33
title: ML inference (request)
44
nav_order: 30
55
has_children: false
6-
parent: Search processors
6+
parent: User-defined search processors
77
grand_parent: Search pipelines
88
---
99

_search-plugins/search-pipelines/ml-inference-search-response.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: default
33
title: ML inference (response)
44
nav_order: 40
55
has_children: false
6-
parent: Search processors
6+
parent: User-defined search processors
77
grand_parent: Search pipelines
88
---
99

_search-plugins/search-pipelines/neural-query-enricher.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: default
33
title: Neural query enricher
44
nav_order: 50
55
has_children: false
6-
parent: Search processors
6+
parent: User-defined search processors
77
grand_parent: Search pipelines
88
---
99

_search-plugins/search-pipelines/neural-sparse-query-two-phase-processor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
title: Neural sparse query two-phase
44
nav_order: 60
5-
parent: Search processors
5+
parent: User-defined search processors
66
grand_parent: Search pipelines
77
---
88

_search-plugins/search-pipelines/normalization-processor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: default
33
title: Normalization
44
nav_order: 70
55
has_children: false
6-
parent: Search processors
6+
parent: User-defined search processors
77
grand_parent: Search pipelines
88
---
99

_search-plugins/search-pipelines/oversample-processor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: default
33
title: Oversample
44
nav_order: 80
55
has_children: false
6-
parent: Search processors
6+
parent: User-defined search processors
77
grand_parent: Search pipelines
88
---
99

0 commit comments

Comments
 (0)