Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

mobimeo/pelias-unique-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pelias Unique Token Filter

Adapted from the official Elasticsearch Unique Token Filter.

Currently, this plugin exists to provide this fix in ES 7.8.1.

ElasticSearch version support

This plugin is compatible with ES 7.8.1.

Build

To build .zip or .jar for this plugin, run following command and you should see generated files in /target.

mvn clean install

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

Test

mvn test

Release

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.

Usage

The plugin provides a token filter of type pelias_unique which has the same usage as the Unique Token Filter provided by Elasticsearch.