From d433cd555a20d310c2da0f1e9c35b2f7e78141b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20J=C3=AD=C5=A1a?= Date: Mon, 24 Jan 2022 17:03:25 +0100 Subject: [PATCH] [DOCS] Remove Hunspell dictionaries location config (#82704) User can no longer set location for Hunspell dictionaries. `/hunspell` directory is silently used everytime no matter what configuration is used. Co-authored-by: James Rodewig <40268737+jrodewig@users.noreply.github.com> (cherry picked from commit 1a4fd34129b24d2100de3ba2a345810d4fd6db79) # Conflicts: # docs/reference/analysis/tokenfilters/hunspell-tokenfilter.asciidoc --- .../tokenfilters/hunspell-tokenfilter.asciidoc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/reference/analysis/tokenfilters/hunspell-tokenfilter.asciidoc b/docs/reference/analysis/tokenfilters/hunspell-tokenfilter.asciidoc index cef687f761905..0a80ed5fff25c 100644 --- a/docs/reference/analysis/tokenfilters/hunspell-tokenfilter.asciidoc +++ b/docs/reference/analysis/tokenfilters/hunspell-tokenfilter.asciidoc @@ -3,12 +3,11 @@ Basic support for hunspell stemming. Hunspell dictionaries will be picked up from a dedicated hunspell directory on the filesystem -(`/hunspell`). Each dictionary is expected to +(`<$ES_PATH_CON>/hunspell`). Each dictionary is expected to have its own directory named after its associated locale (language). This dictionary directory is expected to hold a single `*.aff` and one or more `*.dic` files (all of which will automatically be picked up). -For example, assuming the default hunspell location is used, the -following directory layout will define the `en_US` dictionary: +For example, the following directory layout will define the `en_US` dictionary: [source,txt] -------------------------------------------------- @@ -72,9 +71,7 @@ The hunspell token filter accepts four options: `language` are used instead - so one of these has to be set. `dictionary`:: - The name of a dictionary. The path to your hunspell - dictionaries should be configured via - `indices.analysis.hunspell.dictionary.location` before. + The name of a dictionary. `dedup`:: If only unique terms should be returned, this needs to be @@ -91,7 +88,7 @@ the stemming is determined by the quality of the dictionary. [float] ==== Dictionary loading -By default, the default Hunspell directory (`config/hunspell/`) is checked +By default, the Hunspell directory (`<$ES_PATH_CON>/hunspell/`) is checked for dictionaries when the node starts up, and any dictionaries are automatically loaded.