This version of the OpenSearch documentation 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 is a community plugin for query rewriting that helps to solve relevance issues, making search engines more precise regarding matching and scoring.

Querqy is currently only supported in OpenSearch 2.3.

Querqy plugin installation

The Querqy plugin is now available for OpenSearch 2.3.0. Run the following command to install the Querqy plugin.

  1. ./bin/opensearch-plugin install \
  2. "https://repo1.maven.org/maven2/org/querqy/opensearch-querqy/1.0.os2.3.0/opensearch-querqy-1.0.os2.3.0.zip"

Answer yes to the security prompts during the installation as Querqy requires additional permissions to load query rewriters.

After installing the Querqy plugin you can find comprehensive documentation on the Querqy.org site: Querqy

Path and HTTP methods

  1. POST /myindex/_search

Example query

  1. {
  2. "query": {
  3. "querqy": {
  4. "matching_query": {
  5. "query": "books"
  6. },
  7. "query_fields": [ "title^3.0", "words^2.1", "shortSummary"]
  8. }
  9. }
  10. }