Skip to content

Commit

Permalink
Refactor the search section (#9085) (#9087)
Browse files Browse the repository at this point in the history
  • Loading branch information
opensearch-trigger-bot[bot] authored Jan 17, 2025
1 parent fdd81da commit 993f5f5
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 28 deletions.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ opensearch_collection:
name: Aggregations
nav_fold: true
search-plugins:
name: Search
name: Search features
nav_fold: true
ml-commons-plugin:
name: Machine learning
Expand Down
3 changes: 2 additions & 1 deletion _search-plugins/collapse-search.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
layout: default
title: Collapse search results
nav_order: 3
parent: Searching data
nav_order: 40
---

# Collapse search results
Expand Down
3 changes: 2 additions & 1 deletion _search-plugins/filter-search.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: default
title: Filter search results
title: Filter results
parent: Search options
nav_order: 36
---

Expand Down
4 changes: 2 additions & 2 deletions _search-plugins/searching-data/autocomplete.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
layout: default
title: Autocomplete
parent: Searching data
nav_order: 24
parent: Search options
nav_order: 60
redirect_from:
- /opensearch/search/autocomplete/
---
Expand Down
4 changes: 2 additions & 2 deletions _search-plugins/searching-data/did-you-mean.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
layout: default
title: Did-you-mean
parent: Searching data
nav_order: 25
parent: Search options
nav_order: 70
redirect_from:
- /opensearch/search/did-you-mean/
---
Expand Down
4 changes: 2 additions & 2 deletions _search-plugins/searching-data/highlight.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
layout: default
title: Highlight query matches
parent: Searching data
nav_order: 23
parent: Search options
nav_order: 50
redirect_from:
- /opensearch/search/highlight/
---
Expand Down
11 changes: 7 additions & 4 deletions _search-plugins/searching-data/index.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
---
layout: default
title: Searching data
title: Search options
nav_order: 5
has_children: true
has_toc: false
redirect_from: /opensearch/ux/
---

# Searching data
# Search options

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.
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.

Feature | Description
Option | Description
:--- | :---
[Autocomplete functionality]({{site.url}}{{site.baseurl}}/opensearch/search/autocomplete/) | Suggest phrases as the user types.
[Did-you-mean functionality]({{site.url}}{{site.baseurl}}/opensearch/search/did-you-mean/) | Check spelling of phrases as the user types.
[Paginate results]({{site.url}}{{site.baseurl}}/opensearch/search/paginate/) | Rather than a single, long list, separate search results into pages.
[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.
[Sort results]({{site.url}}{{site.baseurl}}/opensearch/search/sort/) | Allow sorting of results by different criteria.
[Filter results]({{site.url}}{{site.baseurl}}/search-plugins/filter-search/) | Filter search results.
[Collapse results]({{site.url}}{{site.baseurl}}/search-plugins/collapse-search/) | Collapse search results.
[Highlight query matches]({{site.url}}{{site.baseurl}}/opensearch/search/highlight/) | Highlight the search term in the results.
[Retrieve inner hits]({{site.url}}{{site.baseurl}}/search-plugins/searching-data/inner-hits/) | Retrieve underlying hits in nested and parent-join objects.
[Retrieve specific fields]({{site.url}}{{site.baseurl}}/search-plugins/searching-data/retrieve-specific-fields/) | Retrieve only the specific fields
8 changes: 4 additions & 4 deletions _search-plugins/searching-data/inner-hits.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
layout: default
title: Inner hits
parent: Searching data
title: Retrieve inner hits
parent: Search options
has_children: false
nav_order: 70
nav_order: 75
---

# Inner hits
# Retrieve inner hits

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.

Expand Down
4 changes: 2 additions & 2 deletions _search-plugins/searching-data/paginate.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
layout: default
title: Paginate results
parent: Searching data
parent: Search options
nav_order: 10
redirect_from:
- /opensearch/search/paginate/
---

## Paginate results
# Paginate results

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

Expand Down
2 changes: 1 addition & 1 deletion _search-plugins/searching-data/point-in-time-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Point in Time API
nav_order: 59
has_children: false
parent: Point in Time
grand_parent: Searching data
grand_parent: Search options
redirect_from:
- /opensearch/point-in-time-api/
- /search-plugins/point-in-time-api/
Expand Down
2 changes: 1 addition & 1 deletion _search-plugins/searching-data/point-in-time.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: default
title: Point in Time
parent: Searching data
parent: Search options
nav_order: 20
has_children: true
has_toc: false
Expand Down
4 changes: 2 additions & 2 deletions _search-plugins/searching-data/retrieve-specific-fields.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
layout: default
parent: Searching data
parent: Search options
title: Retrieve specific fields
nav_order: 60
nav_order: 80
---

# Retrieve specific fields
Expand Down
4 changes: 2 additions & 2 deletions _search-plugins/searching-data/search-shard-routing.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
layout: default
parent: Searching data
parent: Search options
title: Search shard routing
nav_order: 70
nav_order: 90
---

# Search shard routing
Expand Down
6 changes: 3 additions & 3 deletions _search-plugins/searching-data/sort.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
---
layout: default
title: Sort results
parent: Searching data
nav_order: 22
parent: Search options
nav_order: 30
redirect_from:
- /opensearch/search/sort/
---

## Sort results
# Sort results

Sorting allows your users to sort results in a way that’s most meaningful to them.

Expand Down

0 comments on commit 993f5f5

Please sign in to comment.