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

1.6 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

Querqy is currently only compatible with OpenSearch 1.3.1 {: .note }

  1. The Querqy plugin code is located here: querqy-opensearch. To download the plugin code ZIP file, select the green "Code" button, then select "Download ZIP"

  2. Install JDK 11. On Amazon Linux 2, install JDK11 with the following command:

    sudo yum install java-11-amazon-corretto
    
  3. Uncompress the ZIP file:

    unzip querqy-opensearch-main.zip
    
  4. Change to the uncompressed Querqy directory:

    cd querqy-opensearch-main
    
  5. Compile the plugin:

    ./gradlew build
    
  6. The compiled plugin is stored in this directory:

    /path/to/file/querqy-opensearch-main/build/distributions/opensearch-querqy-1.3.1.0.zip`
    
  7. The compiled Querqy plugin is installed the same as any OpenSearch plugin:

    /path/to/opensearch/bin/opensearch-plugin install file:///path/to/file/opensearch-querqy-1.3.1.0.zip
    
  8. Reboot the OpenSearch node:

    sudo reboot
    

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