Procedures
Automation procedures in the OpenSearch book.
Ensure that you have installed or connected the OpenSearch book and created a new playground before using these automation procedures.
to create a (document) in opensearch
Create a document in opensearch
Input Concepts
index name
The name of the index.
text
Yes
(no default)
document
The document to be indexed.
json
Yes
(no default)
document id
The optional ID for the document.
text
No
(no default)
Output Concepts
Examples
create a document in opensearch
create a json
use the above as the document
the document's "title" is "My New Document"
create the document in opensearch
the index name is "my_index"create a document in opensearch with a specific id
to delete a document from opensearch
Delete a document from opensearch
Input Concepts
Examples
to get a (document) from opensearch
Get a document from opensearch by its ID
Input Concepts
index name
The name of the index.
text
Yes
(no default)
document id
The ID of the document to retrieve.
text
Yes
(no default)
Output Concepts
Examples
get an document from opensearch
to query some (documents) from opensearch
Query documents from Opensearch
Input Concepts
index name
single index name, or comma separated index or aliases to search on.
text
Yes
(no default)
query type
the type of query to perform
enum[fuzzy, match, prefix, simple, term]
No
{'class_name': 'QueryType', 'name': 'MATCH', 'value': 'match'}
Output Concepts
Examples
query some documents from opensearch
query some documents from opensearch with filter expression
query some documents from opensearch with filter expression and fuzzy query type
to update a (document) in opensearch
Update a document in opensearch
Input Concepts
Output Concepts
Examples
Last updated
Was this helpful?
