OpenSearch
- class OpenSearchClient(*, config: OpenSearchConfig)
Simple OpenSearch search SDK
- exception ConnectionError(message)
- exception ParseError(message)
- exception QueryError(message)
- exception SearchError(message)
- search_match(terms: dict[str, str])
Convenience function for searching for matches using key–values in a dict
Each key–value pairs will be expanded into individual “must” “match” objects. Example: search_match({“foo”: “bar”, “baz”: “qux”}) will generate [{“match”: {“foo”: “bar”}}, {“match”: {“baz”: “qux”}}] that will be used as the argument “must” in search().