Skip to content

Commit b5ca93d

Browse files
authored
Adds OpenSearch Intelligent Ranking plugin (opensearch-project#2012)
* Adds OpenSearch Intelligent Ranking plugin Signed-off-by: Fanit Kolchina <[email protected]> * Updated images Signed-off-by: Fanit Kolchina <[email protected]> * Changed link reference Signed-off-by: Fanit Kolchina <[email protected]> * Changed image for compare search results Signed-off-by: Fanit Kolchina <[email protected]> * Implemented PM feedback Signed-off-by: Fanit Kolchina <[email protected]> * More PM comments Signed-off-by: Fanit Kolchina <[email protected]> * Fixed typo Signed-off-by: Fanit Kolchina <[email protected]> * Rolled back Kendra changes Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: Fanit Kolchina <[email protected]>
1 parent cb9b5a6 commit b5ca93d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

_search-plugins/search-relevance/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ The following is an example query:
4949
"query": {
5050
"multi_match": {
5151
"query": "%SearchText%",
52-
"fields": [ "title", "text" ]
52+
"fields": [ "description", "item_name" ]
5353
}
5454
}
5555
}
@@ -64,19 +64,19 @@ The following example query boosts the `title` field in search results:
6464
"query": {
6565
"multi_match": {
6666
"query": "%SearchText%",
67-
"fields": [ "title^3", "text" ]
67+
"fields": [ "description", "item_name^3" ]
6868
}
6969
}
7070
}
7171
```
7272

7373
**Step 5:** Select **Search** and compare the results in **Result 1** and **Result 2**.
7474

75-
The following example screen shows a search for the word "container" in the `title` and `text` fields with and without boosting the `title`:
75+
The following example screen shows a search for the word "cup" in the `description` and `item_name` fields with and without boosting the `item_name`:
7676

7777
<img src="{{site.url}}{{site.baseurl}}/images/search_relevance.png" alt="Compare search results"/>{: .img-fluid }
7878

79-
If a result in Result 1 appears in Result 2, the `Up` and `Down` indicators below the result number signify how many places the result moved up or down compared to the same result in Result 2. In this example, the document with the ID 10 is `Up 1` place in Result 2 compared to Result 1 and `Down 1` place in Result 1 compared to Result 2.
79+
If a result in Result 1 appears in Result 2, the `Up` and `Down` indicators below the result number signify how many places the result moved up or down compared to the same result in Result 2. In this example, the document with the ID 2 is `Up 1` place in Result 2 compared to Result 1 and `Down 1` place in Result 1 compared to Result 2.
8080

8181
## Changing the number of results
8282

images/search_relevance.png

-53.6 KB
Loading

0 commit comments

Comments
 (0)