OpenSearch Adapter¶
Connects to OpenSearch v2+ — the AWS-maintained fork of Elasticsearch with a compatible query DSL.
Installation¶
Configuration¶
search:
adapters:
opensearch:
enabled: true
hosts: ["https://localhost:9200"]
index_pattern: "documents"
username: "admin"
password: "admin"
verify_certs: false
| Parameter | Type | Default | Description |
|---|---|---|---|
hosts |
list[str] |
["https://localhost:9200"] |
OpenSearch node URLs |
index_pattern |
str |
"*" |
Index pattern for searches |
username |
str |
None |
HTTP basic-auth username |
password |
str |
None |
HTTP basic-auth password |
verify_certs |
bool |
true |
Verify TLS certificates |
Search Behavior¶
The query DSL is largely compatible with Elasticsearch. The adapter uses:
multi_matchwithbest_fieldsacrosstitle,content,description- Highlighting for
titleandcontent - Recency filtering via range queries on
@timestamp