Custom analyzer from file


(ciro) #1

Is it possible to create a custom analyzer from a file?

example:

i have a file with no stop words that i want import in es.
can i create this?

"filter": {
    "my_stopwords": {
        "type":        "stop",
        "stopwords":  my_file_with_stopwords.txt
    }
}

(David Pilato) #2

You need to add your file on each node in config/ dir.

Read https://www.elastic.co/guide/en/elasticsearch/reference/2.1/analysis-stop-tokenfilter.html


(ciro) #3

thanks!


(system) #4