-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update 2.x to be inline with main (#308)
* Created untriaged issue workflow. (#290) Signed-off-by: dblock <dblock@amazon.com> * Removed 'out/opensearchpy' folder which was produced while generating pyi files for plugins (#288) Signed-off-by: saimedhi <saimedhi@amazon.com> * Merging opensearch-dsl-py to opensearch-py (#287) Signed-off-by: saimedhi <saimedhi@amazon.com> * Fixed CVE - issue 86 mentioned in opensearch-dsl-py repo (#295) Signed-off-by: saimedhi <saimedhi@amazon.com> * Removing low-level and high-level client terminology (#298) Signed-off-by: Vacha Shah <vachshah@amazon.com> * Added upgrading.md file and updated it for opensearch-py 2.2.0 release (#293) Signed-off-by: saimedhi <saimedhi@amazon.com> --------- Signed-off-by: dblock <dblock@amazon.com> Signed-off-by: saimedhi <saimedhi@amazon.com> Signed-off-by: Vacha Shah <vachshah@amazon.com> Co-authored-by: Daniel (dB.) Doubrovkine <dblock@amazon.com> Co-authored-by: Sai Medhini Reddy Maryada <117196660+saimedhi@users.noreply.github.com> Co-authored-by: Vacha Shah <vachshah@amazon.com>
- Loading branch information
1 parent
58aa041
commit e773f37
Showing
110 changed files
with
14,242 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Apply 'untriaged' label during issue lifecycle | ||
|
||
on: | ||
issues: | ||
types: [opened, reopened, transferred] | ||
|
||
jobs: | ||
apply-label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
github.rest.issues.addLabels({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
labels: ['untriaged'] | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
- [Upgrading OpenSearch Python Client](#upgrading-opensearch-python-client) | ||
- [Upgrading to >= 2.2.0](#upgrading-to->=-2.2.0) | ||
- [Features from High-Level Python Client](#features-from-high-level-python-client) | ||
- [API Implementation differences for existing opensearch-dsl-py users](#api-implementation-differences-for-existing-opensearch-dsl-py-users) | ||
|
||
|
||
# Upgrading OpenSearch Python Client | ||
|
||
## Upgrading to >= 2.2.0 | ||
|
||
opensearch-py now includes [opensearch-dsl-py](https://pypi.org/project/opensearch-dsl/) features. opensearch-dsl-py was merged into opensearch-py preserving backwards compatibility with the previous opensearch-py version. (Refer [link](https://github.com/opensearch-project/opensearch-py/pull/287)) | ||
|
||
|
||
### Features from High-Level Python Client | ||
|
||
opensearch-py functionalities that already exist are not altered. | ||
|
||
The opensearchpy [helpers](https://github.com/opensearch-project/opensearch-py/tree/main/opensearchpy/helpers) module now provides access to aggs, analysis, document, faceted search, field, function, index, mapping, query, search, update by query, utils, and wrappers. As a result, without importing opensearch-dsl-py, these functionalities can be imported directly from opensearch-py. | ||
|
||
|
||
### API Implementation differences for existing opensearch-dsl-py users | ||
|
||
The functionalities from opensearch-dsl-py are merged into this client. Refer to the [USER_GUIDE](https://github.com/opensearch-project/opensearch-py/blob/main/USER_GUIDE.md#using-high-level-python-client) for an example on how to implement a feature from the previously known high level Python client. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# helpers | ||
|
||
```{toctree} | ||
--- | ||
glob: | ||
titlesonly: | ||
maxdepth: 1 | ||
--- | ||
helpers/aggs | ||
helpers/analysis | ||
helpers/document | ||
helpers/faceted_search | ||
helpers/field | ||
helpers/function | ||
helpers/index | ||
helpers/mapping | ||
helpers/query | ||
helpers/search | ||
helpers/update_by_query | ||
helpers/wrappers | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# aggs | ||
|
||
```{eval-rst} | ||
.. autoclass:: opensearchpy.helpers.aggs.Agg | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# analysis | ||
|
||
```{eval-rst} | ||
.. autoclass:: opensearchpy.helpers.analysis.Analyzer | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# document | ||
|
||
```{eval-rst} | ||
.. autoclass:: opensearchpy.helpers.document.Document | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# faceted_search | ||
|
||
```{eval-rst} | ||
.. autoclass:: opensearchpy.helpers.faceted_search.FacetedSearch | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# field | ||
|
||
```{eval-rst} | ||
.. autoclass:: opensearchpy.helpers.field.Field | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# function | ||
|
||
```{eval-rst} | ||
.. autoclass:: opensearchpy.helpers.function.ScoreFunction | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# index | ||
|
||
```{eval-rst} | ||
.. autoclass:: opensearchpy.helpers.index.Index | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# mapping | ||
|
||
```{eval-rst} | ||
.. autoclass:: opensearchpy.helpers.mapping.Mapping | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# query | ||
|
||
```{eval-rst} | ||
.. autoclass:: opensearchpy.helpers.query.Query | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# search | ||
|
||
```{eval-rst} | ||
.. autoclass:: opensearchpy.helpers.search.Search | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# update_by_query | ||
|
||
```{eval-rst} | ||
.. autoclass:: opensearchpy.helpers.update_by_query.UpdateByQuery | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# wrappers | ||
|
||
```{eval-rst} | ||
.. autoclass:: opensearchpy.helpers.wrappers.Range | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.