Skip to content

Commit 65fcc43

Browse files
authored
Refactor the search section (opensearch-project#9085)
Signed-off-by: Fanit Kolchina <[email protected]>
1 parent 086930d commit 65fcc43

14 files changed

+33
-28
lines changed

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ opensearch_collection:
171171
name: Aggregations
172172
nav_fold: true
173173
search-plugins:
174-
name: Search
174+
name: Search features
175175
nav_fold: true
176176
ml-commons-plugin:
177177
name: Machine learning

_search-plugins/collapse-search.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
layout: default
33
title: Collapse search results
4-
nav_order: 3
4+
parent: Searching data
5+
nav_order: 40
56
---
67

78
# Collapse search results

_search-plugins/filter-search.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: default
3-
title: Filter search results
3+
title: Filter results
4+
parent: Search options
45
nav_order: 36
56
---
67

_search-plugins/searching-data/autocomplete.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
layout: default
33
title: Autocomplete
4-
parent: Searching data
5-
nav_order: 24
4+
parent: Search options
5+
nav_order: 60
66
redirect_from:
77
- /opensearch/search/autocomplete/
88
---

_search-plugins/searching-data/did-you-mean.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
layout: default
33
title: Did-you-mean
4-
parent: Searching data
5-
nav_order: 25
4+
parent: Search options
5+
nav_order: 70
66
redirect_from:
77
- /opensearch/search/did-you-mean/
88
---

_search-plugins/searching-data/highlight.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
layout: default
33
title: Highlight query matches
4-
parent: Searching data
5-
nav_order: 23
4+
parent: Search options
5+
nav_order: 50
66
redirect_from:
77
- /opensearch/search/highlight/
88
---
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
---
22
layout: default
3-
title: Searching data
3+
title: Search options
44
nav_order: 5
55
has_children: true
66
has_toc: false
77
redirect_from: /opensearch/ux/
88
---
99

10-
# Searching data
10+
# Search options
1111

12-
What users expect from search engines has evolved over the years. Just returning relevant results quickly is no longer enough for most users. Now users seek methods that allow them to get even more relevant results, to sort and organize results, and to highlight their queries. OpenSearch includes many features, described in the following table, that enhance the search experience.
12+
What users expect from search engines has evolved over the years. Just returning relevant results quickly is no longer enough for most users. Now users seek methods that allow them to get even more relevant results, to sort and organize results, and to highlight their queries. OpenSearch includes many search options, described in the following table, that enhance the search experience.
1313

14-
Feature | Description
14+
Option | Description
1515
:--- | :---
1616
[Autocomplete functionality]({{site.url}}{{site.baseurl}}/opensearch/search/autocomplete/) | Suggest phrases as the user types.
1717
[Did-you-mean functionality]({{site.url}}{{site.baseurl}}/opensearch/search/did-you-mean/) | Check spelling of phrases as the user types.
1818
[Paginate results]({{site.url}}{{site.baseurl}}/opensearch/search/paginate/) | Rather than a single, long list, separate search results into pages.
19+
[Point in Time]({{site.url}}{{site.baseurl}}/search-plugins/searching-data/point-in-time/) | Run different queries against a dataset that is fixed in time.
1920
[Sort results]({{site.url}}{{site.baseurl}}/opensearch/search/sort/) | Allow sorting of results by different criteria.
21+
[Filter results]({{site.url}}{{site.baseurl}}/search-plugins/filter-search/) | Filter search results.
22+
[Collapse results]({{site.url}}{{site.baseurl}}/search-plugins/collapse-search/) | Collapse search results.
2023
[Highlight query matches]({{site.url}}{{site.baseurl}}/opensearch/search/highlight/) | Highlight the search term in the results.
2124
[Retrieve inner hits]({{site.url}}{{site.baseurl}}/search-plugins/searching-data/inner-hits/) | Retrieve underlying hits in nested and parent-join objects.
2225
[Retrieve specific fields]({{site.url}}{{site.baseurl}}/search-plugins/searching-data/retrieve-specific-fields/) | Retrieve only the specific fields

_search-plugins/searching-data/inner-hits.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
layout: default
3-
title: Inner hits
4-
parent: Searching data
3+
title: Retrieve inner hits
4+
parent: Search options
55
has_children: false
6-
nav_order: 70
6+
nav_order: 75
77
---
88

9-
# Inner hits
9+
# Retrieve inner hits
1010

1111
In OpenSearch, when you perform a search using [nested objects]({{site.url}}{{site.baseurl}}/field-types/supported-field-types/nested/) or [parent-join]({{site.url}}{{site.baseurl}}/field-types/supported-field-types/join/), the underlying hits (nested inner objects or child documents) are hidden by default. You can retrieve inner hits by using the `inner_hits` parameter in the search query.
1212

_search-plugins/searching-data/paginate.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
layout: default
33
title: Paginate results
4-
parent: Searching data
4+
parent: Search options
55
nav_order: 10
66
redirect_from:
77
- /opensearch/search/paginate/
88
---
99

10-
## Paginate results
10+
# Paginate results
1111

1212
You can use the following methods to paginate search results in OpenSearch:
1313

_search-plugins/searching-data/point-in-time-api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Point in Time API
44
nav_order: 59
55
has_children: false
66
parent: Point in Time
7-
grand_parent: Searching data
7+
grand_parent: Search options
88
redirect_from:
99
- /opensearch/point-in-time-api/
1010
- /search-plugins/point-in-time-api/

0 commit comments

Comments
 (0)