opensearch-docs-cn/_search-plugins/querqy/index.md

1.1 KiB

layout title has_children redirect_from nav_order
default Querqy false
/search-plugins/querqy/
10

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 plugin installation

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

./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"

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

POST /myindex/_search

Example query

{
   "query": {
       "querqy": {
           "matching_query": {
               "query": "books"
           },
           "query_fields": [ "title^3.0", "words^2.1", "shortSummary"]
       }
   }
}