Adapted from the official Elasticsearch Unique Token Filter.
Currently, this plugin exists to provide this fix in ES 7.8.1.
This plugin is compatible with ES 7.8.1.
To build .zip or .jar for this plugin, run following command and you should see generated files in /target
.
mvn clean install
To install on your current ES node, use the plugin binary provided in the Elasticsearch bin folder.
sudo bin/elasticsearch-plugin install https://github.com/moovel/pelias-unique-filter/releases/download/v1.0.0/unique-filter-1.0.0.zip
mvn test
First add the following settings to settings.xml
:
<servers>
<server>
<id>github</id>
<username>GITHUB_USERNAME</username>
<password>GITHUB_TOKEN</password>
</server>
</servers>
You can get a Github token by following the docs.
Then run:
mvn clean package
mvn github-release:release
The above should be moved to a CI build.
The plugin provides a token filter of type pelias_unique
which has the same usage as the Unique Token Filter provided by Elasticsearch.