You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -27,33 +27,33 @@ Main features:
27
27
28
28
You can find a collection of examples in the `src/demos` folder:
29
29
30
-
-Elasticsearch, an example on how to query Elasticsearch (see below)
30
+
-OpenSearch, an example on how to query OpenSearch (see below)
31
31
- Zenodo.org, an example on how to query an Invenio 3 instance
32
32
- CERN Videos, another Invenio 3 example
33
33
34
34
Install dependencies and run the React app to try them out (see steps below).
35
35
36
-
### Elasticsearch
36
+
### OpenSearch
37
37
38
-
To run the Elasticsearch backend for the demo, you can use Docker. A `docker-compose` file with `ES 7` and `nginx` as reverse proxy is available and ready to use.
38
+
To run the OpenSearch backend for the demo, you can use Docker. A `docker-compose` file with `ES 7` and `nginx` as reverse proxy is available and ready to use.
Copy file name to clipboardExpand all lines: docs/docs/connect_your_rest_apis.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ id: connect-your-rest-apis
3
3
title: Connect Your REST APIs
4
4
---
5
5
6
-
React-SearchKit comes out of the box with a working adapter for [Elasticsearch 7](https://www.elastic.co/) and [Invenio](https://inveniosoftware.org) REST APIs. However, the library has been designed to allow the creation of custom adapters to plug in any REST API service.
6
+
React-SearchKit comes out of the box with a working adapter for [OpenSearch 2](https://opensearch.org/) and [Invenio](https://inveniosoftware.org) REST APIs. However, the library has been designed to allow the creation of custom adapters to plug in any REST API service.
7
7
8
8
There are 2 ways of connecting your REST APIs:
9
9
@@ -12,12 +12,12 @@ There are 2 ways of connecting your REST APIs:
12
12
13
13
## Use one of the available
14
14
15
-
The `Elasticsearch` adapter can be configured by passing an object. The configuration will be injected directly in the [axios](https://github.com/axios/axios) instance used under the hood to perform network requests.
15
+
The `OpenSearch` adapter can be configured by passing an object. The configuration will be injected directly in the [axios](https://github.com/axios/axios) instance used under the hood to perform network requests.
16
16
17
17
```jsx
18
-
constsearchApi=newESSearchApi({
18
+
constsearchApi=newOSSearchApi({
19
19
axios: {
20
-
url:'https://my.es.backend.org/search/',
20
+
url:'https://my.os.backend.org/search/',
21
21
timeout:5000,
22
22
}
23
23
});
@@ -100,12 +100,12 @@ Custom serializers can then be injected in the configuration of the adapter:
Copy file name to clipboardExpand all lines: docs/docs/filters_aggregations.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ Filters allow to refine search results with exact match on specific fields. For
9
9
10
10
In React-SearchKit, the query state contains a field called `filters` which contains the list of filters selected by the user.
11
11
12
-
[Filters](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-filter-context.html#filter-context) and [Aggregations](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations.html) are fundamental concepts of Elasticsearch.
12
+
[Filters](https://opensearch.org/docs/latest/query-dsl/query-filter-context/) and [Aggregations](https://opensearch.org/docs/latest/aggregations/) are fundamental concepts of OpenSearch.
13
13
However, they can be applied to any backend or REST APIs.
14
14
15
15
## Aggregations
@@ -23,11 +23,11 @@ For example, for each existing `age` value:
23
23
*`31`: 18 results
24
24
* etc.
25
25
26
-
In Elasticsearch, there are several types of aggregations available. React-SearchKit comes out of the box with a component that implements [Bucket Terms Aggregations](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html), but any other aggregation should be easy to implement.
26
+
In OpenSearch, there are several types of aggregations available. React-SearchKit comes out of the box with a component that implements [Bucket Terms Aggregations](https://opensearch.org/docs/latest/aggregations/bucket/terms/), but any other aggregation should be easy to implement.
27
27
28
28
## Bucket aggregations
29
29
30
-
The `<BucketAggregation>` component defines the name of the aggregation to request to the backend or Elasticsearch and the field to compute the aggregations on.
30
+
The `<BucketAggregation>` component defines the name of the aggregation to request to the backend or OpenSearch and the field to compute the aggregations on.
31
31
For example:
32
32
33
33
```jsx
@@ -41,7 +41,7 @@ For example:
41
41
42
42
> It is your responsibility to create the search request to your backend taking into account the configured aggregations.
43
43
44
-
The `results` state should then contains aggregations results in the object `aggregations`. The `<BucketAggregation>` component expects the Elasticsearch format:
44
+
The `results` state should then contains aggregations results in the object `aggregations`. The `<BucketAggregation>` component expects the OpenSearch format:
Copy file name to clipboardExpand all lines: docs/docs/getting_started.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ class App extends Component {
78
78
}
79
79
```
80
80
81
-
> Note: `React-SearchKit` comes out of the box with support to ElasticSearch 7 and [Invenio](https://inveniosoftware.org) REST APIs. To connect your own REST APIs, you can override the default configuration or provide your own adapter for your backend. Follow the next steps of this guide for detailed instructions on how to do it.
81
+
> Note: `React-SearchKit` comes out of the box with support to OpenSearch 2 and [Invenio](https://inveniosoftware.org) REST APIs. To connect your own REST APIs, you can override the default configuration or provide your own adapter for your backend. Follow the next steps of this guide for detailed instructions on how to do it.
Copy file name to clipboardExpand all lines: docs/docs/main_concepts.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ API responses will update this part of the state. Components that are connected
95
95
96
96
The API layer is composed of:
97
97
98
-
*`SearchAPI`: adapter for HTTP requests. Available in 2 flavors, for Elasticsearch and Invenio, it is responsible of serializing the `query` state to search requests for your REST APIs and serialize back responses to mutate the `results` state.
98
+
*`SearchAPI`: adapter for HTTP requests. Available in 2 flavors, for OpenSearch and Invenio, it is responsible of serializing the `query` state to search requests for your REST APIs and serialize back responses to mutate the `results` state.
99
99
*`UrlHandlerApi`: an object capable of serializing the `query` state to the URL query string and vice versa, very useful for deep linking.
100
100
101
101
> Note: given the structure of the Redux state, responses serialization must be adapted to the `results` state structure.
0 commit comments