2022-08-31 18:42:17 -04:00
---
layout: default
title: Querqy
2023-11-29 15:28:20 -05:00
parent: Search relevance
2022-08-31 18:42:17 -04:00
has_children: false
redirect_from:
- /search-plugins/querqy/
2023-03-08 10:53:21 -05:00
nav_order: 210
2022-08-31 18:42:17 -04:00
---
# Querqy
Querqy is a community plugin for query rewriting that helps to solve relevance issues, making search engines more precise regarding matching and scoring.
2023-03-16 16:16:13 -04:00
Querqy is currently only supported in OpenSearch 2.3.
{: .warning }
2022-08-31 18:42:17 -04:00
## Querqy plugin installation
2022-10-06 12:44:45 -04:00
The Querqy plugin is now available for OpenSearch 2.3.0. Run the following command to install the Querqy plugin.
2022-08-31 18:42:17 -04:00
2022-10-06 12:44:45 -04:00
````bash
./bin/opensearch-plugin install \
"https://repo1.maven.org/maven2/org/querqy/opensearch-querqy/1.0.os2.3.0/opensearch-querqy-1.0.os2.3.0.zip"
````
2022-08-31 18:42:17 -04:00
2022-10-06 12:44:45 -04:00
Answer `yes` to the security prompts during the installation as Querqy requires additional permissions to load query rewriters.
2022-08-31 18:42:17 -04:00
2022-10-06 12:44:45 -04:00
After installing the Querqy plugin you can find comprehensive documentation on the Querqy.org site: [Querqy ](https://docs.querqy.org/querqy/index.html )
2022-08-31 18:42:17 -04:00
2022-10-06 12:44:45 -04:00
## Path and HTTP methods
2022-08-31 18:42:17 -04:00
2022-10-06 12:44:45 -04:00
```
POST /myindex/_search
```
2022-08-31 18:42:17 -04:00
2022-10-06 12:44:45 -04:00
## Example query
2022-08-31 18:42:17 -04:00
2022-10-06 12:44:45 -04:00
````json
{
"query": {
"querqy": {
"matching_query": {
"query": "books"
},
"query_fields": [ "title^3.0", "words^2.1", "shortSummary"]
}
}
}
````