Skip to content

The file watcher synonym plugin adds a synonym token filter that reloads the synonym file at given intervals.

Notifications You must be signed in to change notification settings

linshimiao/elasticsearch-analysis-file-watcher-synonym

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File watcher synonym for ElasticSearch

The file watcher synonym plugin adds a synonym token filter that reloads the synonym file at given intervals (default 60s).

Example:

{
    "index" : {
        "analysis" : {
            "analyzer" : {
                "synonym" : {
                    "tokenizer" : "whitespace",
                    "filter" : ["synonym"]
               }
            },
            "filter" : {
                "synonym" : {
                    "type" : "file_watcher_synonym",
                    "synonyms_path" : "analysis/synonym.txt"
                    "interval" : "10s"
                }
            }
        }
    }
}

Installation

Using the plugin command (inside your elasticsearch/bin directory) the plugin can be installed by:

bin/plugin -install analysis-file-watcher-synonym  -url https://github.com/lindstromhenrik/elasticsearch-analysis-file-watcher-synonym/releases/download/v0.90.9-0.1.0/elasticsearch-file-watcher-synonym-0.90.9-0.1.0.zip

Compatibility

Note: Please make sure the plugin version matches with your elasticsearch version. Follow this compatibility matrix

------------------------------------------------------
| analysis file watcher synonym   | Elasticsearch    |
------------------------------------------------------
| 0.2.0                           | 1.0.0 -> master  |
| 0.1.0                           | 0.90.x           |
------------------------------------------------------

About

The file watcher synonym plugin adds a synonym token filter that reloads the synonym file at given intervals.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%