You're viewing version 3.3 of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.
Querqy
Querqy for OpenSearch is a community plugin for query rewriting that improves search relevance. It makes OpenSearch more precise in matching and scoring by applying rules for boosting, burying, filtering, and redirecting search results, among other capabilities.
Querqy currently supports OpenSearch versions up to 2.19.2.
For more information, see the Querqy documentation.
Querqy plugin installation
The Querqy plugin is now available for OpenSearch 2.19.2. Run the following command to install the Querqy plugin:
./bin/opensearch-plugin install \
"https://repo1.maven.org/maven2/org/querqy/opensearch-querqy/1.1.os2.19.2/opensearch-querqy-1.1.os2.19.2.zip"
Answer yes to the security prompts during the installation as Querqy requires additional permissions to load query rewriters.
Endpoints
POST /myindex/_search
Example query
{
"query": {
"querqy": {
"matching_query": {
"query": "books"
},
"query_fields": [ "title^3.0", "words^2.1", "shortSummary"]
}
}
}