Where to put Hunspell dictionary for Elasticsearch












1















The Elasticsearch Hunspell docs say to put the dictionaries
in config/hunspell



Is it



/usr/share/elasticsearch/config/hunspell/


or



/etc/elasticsearch/config/hunspell/


or



/etc/elasticsearch/hunspell/


or something else?



So far, I've tried all of those with no success.



There is some talk about a similar issue in this bug report, but I don't see an answer.










share|improve this question



























    1















    The Elasticsearch Hunspell docs say to put the dictionaries
    in config/hunspell



    Is it



    /usr/share/elasticsearch/config/hunspell/


    or



    /etc/elasticsearch/config/hunspell/


    or



    /etc/elasticsearch/hunspell/


    or something else?



    So far, I've tried all of those with no success.



    There is some talk about a similar issue in this bug report, but I don't see an answer.










    share|improve this question

























      1












      1








      1








      The Elasticsearch Hunspell docs say to put the dictionaries
      in config/hunspell



      Is it



      /usr/share/elasticsearch/config/hunspell/


      or



      /etc/elasticsearch/config/hunspell/


      or



      /etc/elasticsearch/hunspell/


      or something else?



      So far, I've tried all of those with no success.



      There is some talk about a similar issue in this bug report, but I don't see an answer.










      share|improve this question














      The Elasticsearch Hunspell docs say to put the dictionaries
      in config/hunspell



      Is it



      /usr/share/elasticsearch/config/hunspell/


      or



      /etc/elasticsearch/config/hunspell/


      or



      /etc/elasticsearch/hunspell/


      or something else?



      So far, I've tried all of those with no success.



      There is some talk about a similar issue in this bug report, but I don't see an answer.







      elasticsearch hunspell






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 9 '16 at 8:14









      John DJohn D

      2,11342542




      2,11342542
























          4 Answers
          4






          active

          oldest

          votes


















          2














          Here is an example of the directory structure for Elasticsearch 5 installed using the .deb installer:



          # Elasticsearch home directory
          #ES_HOME=/usr/share/elasticsearch

          # Elasticsearch configuration directory
          #CONF_DIR=/etc/elasticsearch

          # Elasticsearch data directory
          #DATA_DIR=/var/lib/elasticsearch

          # Elasticsearch logs directory
          #LOG_DIR=/var/log/elasticsearch

          # Elasticsearch PID directory
          #PID_DIR=/var/run/elasticsearch


          In this case, the Hunspell dictionaries should be in a folder called /hunspell in the config directory, which in this particular case would be:
          /etc/elasticsearch/hunspell






          share|improve this answer































            1














            For the version 6.5.1, no need to create config directory



            /usr/local/etc/elasticsearch/hunspell place all language folders here.



            -- hunspell
            | |-- en_US
            | | |-- en_US.dic
            | | |-- en_US.aff
            | |-- ru_RU
            | | |-- ru_RU.dic
            | | |-- ru_RU.aff


            After that just restart the elasticsearch service.



            After the installation you will see this.



            Data:    /usr/local/var/lib/elasticsearch/elasticsearch_bira/
            Logs: /usr/local/var/log/elasticsearch/elasticsearch_bira.log
            Plugins: /usr/local/var/elasticsearch/plugins/
            Config: /usr/local/etc/elasticsearch/





            share|improve this answer

































              0














              Structure of elasticsearch/config must be



              - conf
              |-- hunspell
              | |-- en_US
              | | |-- en_US.dic
              | | |-- en_US.aff
              | |-- ru_RU
              | | |-- ru_RU.dic
              | | |-- ru_RU.aff





              share|improve this answer































                -1














                Turns out that the symbolic links are not followed by elasticsearch (see here), so the ACTUAL files need to be at the location specified.



                Also, the file permissions for the hunspell files need to allow the elasticsearch user to access them.
                Ex (in /etc/elasticsearch/hunspell/):




                drwxr-xr-x 2 root elasticsearch 4.0K Sep 9 09:24 nl_NL







                share|improve this answer
























                • Can you at least specify which directory you put your hunspell dictionaries? Thanks

                  – mordack550
                  Nov 7 '17 at 15:46











                • That depends on the installation method (and the elasticsearch version), so it's better to look where your copy has been installed. Then just put the hunspell directory next to your config file.

                  – John D
                  Nov 14 '17 at 23:55













                Your Answer






                StackExchange.ifUsing("editor", function () {
                StackExchange.using("externalEditor", function () {
                StackExchange.using("snippets", function () {
                StackExchange.snippets.init();
                });
                });
                }, "code-snippets");

                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "1"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f39406897%2fwhere-to-put-hunspell-dictionary-for-elasticsearch%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                4 Answers
                4






                active

                oldest

                votes








                4 Answers
                4






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                2














                Here is an example of the directory structure for Elasticsearch 5 installed using the .deb installer:



                # Elasticsearch home directory
                #ES_HOME=/usr/share/elasticsearch

                # Elasticsearch configuration directory
                #CONF_DIR=/etc/elasticsearch

                # Elasticsearch data directory
                #DATA_DIR=/var/lib/elasticsearch

                # Elasticsearch logs directory
                #LOG_DIR=/var/log/elasticsearch

                # Elasticsearch PID directory
                #PID_DIR=/var/run/elasticsearch


                In this case, the Hunspell dictionaries should be in a folder called /hunspell in the config directory, which in this particular case would be:
                /etc/elasticsearch/hunspell






                share|improve this answer




























                  2














                  Here is an example of the directory structure for Elasticsearch 5 installed using the .deb installer:



                  # Elasticsearch home directory
                  #ES_HOME=/usr/share/elasticsearch

                  # Elasticsearch configuration directory
                  #CONF_DIR=/etc/elasticsearch

                  # Elasticsearch data directory
                  #DATA_DIR=/var/lib/elasticsearch

                  # Elasticsearch logs directory
                  #LOG_DIR=/var/log/elasticsearch

                  # Elasticsearch PID directory
                  #PID_DIR=/var/run/elasticsearch


                  In this case, the Hunspell dictionaries should be in a folder called /hunspell in the config directory, which in this particular case would be:
                  /etc/elasticsearch/hunspell






                  share|improve this answer


























                    2












                    2








                    2







                    Here is an example of the directory structure for Elasticsearch 5 installed using the .deb installer:



                    # Elasticsearch home directory
                    #ES_HOME=/usr/share/elasticsearch

                    # Elasticsearch configuration directory
                    #CONF_DIR=/etc/elasticsearch

                    # Elasticsearch data directory
                    #DATA_DIR=/var/lib/elasticsearch

                    # Elasticsearch logs directory
                    #LOG_DIR=/var/log/elasticsearch

                    # Elasticsearch PID directory
                    #PID_DIR=/var/run/elasticsearch


                    In this case, the Hunspell dictionaries should be in a folder called /hunspell in the config directory, which in this particular case would be:
                    /etc/elasticsearch/hunspell






                    share|improve this answer













                    Here is an example of the directory structure for Elasticsearch 5 installed using the .deb installer:



                    # Elasticsearch home directory
                    #ES_HOME=/usr/share/elasticsearch

                    # Elasticsearch configuration directory
                    #CONF_DIR=/etc/elasticsearch

                    # Elasticsearch data directory
                    #DATA_DIR=/var/lib/elasticsearch

                    # Elasticsearch logs directory
                    #LOG_DIR=/var/log/elasticsearch

                    # Elasticsearch PID directory
                    #PID_DIR=/var/run/elasticsearch


                    In this case, the Hunspell dictionaries should be in a folder called /hunspell in the config directory, which in this particular case would be:
                    /etc/elasticsearch/hunspell







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Nov 15 '17 at 19:22









                    John DJohn D

                    2,11342542




                    2,11342542

























                        1














                        For the version 6.5.1, no need to create config directory



                        /usr/local/etc/elasticsearch/hunspell place all language folders here.



                        -- hunspell
                        | |-- en_US
                        | | |-- en_US.dic
                        | | |-- en_US.aff
                        | |-- ru_RU
                        | | |-- ru_RU.dic
                        | | |-- ru_RU.aff


                        After that just restart the elasticsearch service.



                        After the installation you will see this.



                        Data:    /usr/local/var/lib/elasticsearch/elasticsearch_bira/
                        Logs: /usr/local/var/log/elasticsearch/elasticsearch_bira.log
                        Plugins: /usr/local/var/elasticsearch/plugins/
                        Config: /usr/local/etc/elasticsearch/





                        share|improve this answer






























                          1














                          For the version 6.5.1, no need to create config directory



                          /usr/local/etc/elasticsearch/hunspell place all language folders here.



                          -- hunspell
                          | |-- en_US
                          | | |-- en_US.dic
                          | | |-- en_US.aff
                          | |-- ru_RU
                          | | |-- ru_RU.dic
                          | | |-- ru_RU.aff


                          After that just restart the elasticsearch service.



                          After the installation you will see this.



                          Data:    /usr/local/var/lib/elasticsearch/elasticsearch_bira/
                          Logs: /usr/local/var/log/elasticsearch/elasticsearch_bira.log
                          Plugins: /usr/local/var/elasticsearch/plugins/
                          Config: /usr/local/etc/elasticsearch/





                          share|improve this answer




























                            1












                            1








                            1







                            For the version 6.5.1, no need to create config directory



                            /usr/local/etc/elasticsearch/hunspell place all language folders here.



                            -- hunspell
                            | |-- en_US
                            | | |-- en_US.dic
                            | | |-- en_US.aff
                            | |-- ru_RU
                            | | |-- ru_RU.dic
                            | | |-- ru_RU.aff


                            After that just restart the elasticsearch service.



                            After the installation you will see this.



                            Data:    /usr/local/var/lib/elasticsearch/elasticsearch_bira/
                            Logs: /usr/local/var/log/elasticsearch/elasticsearch_bira.log
                            Plugins: /usr/local/var/elasticsearch/plugins/
                            Config: /usr/local/etc/elasticsearch/





                            share|improve this answer















                            For the version 6.5.1, no need to create config directory



                            /usr/local/etc/elasticsearch/hunspell place all language folders here.



                            -- hunspell
                            | |-- en_US
                            | | |-- en_US.dic
                            | | |-- en_US.aff
                            | |-- ru_RU
                            | | |-- ru_RU.dic
                            | | |-- ru_RU.aff


                            After that just restart the elasticsearch service.



                            After the installation you will see this.



                            Data:    /usr/local/var/lib/elasticsearch/elasticsearch_bira/
                            Logs: /usr/local/var/log/elasticsearch/elasticsearch_bira.log
                            Plugins: /usr/local/var/elasticsearch/plugins/
                            Config: /usr/local/etc/elasticsearch/






                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Jan 2 at 5:32

























                            answered Dec 6 '18 at 7:02









                            BiraBira

                            1,155826




                            1,155826























                                0














                                Structure of elasticsearch/config must be



                                - conf
                                |-- hunspell
                                | |-- en_US
                                | | |-- en_US.dic
                                | | |-- en_US.aff
                                | |-- ru_RU
                                | | |-- ru_RU.dic
                                | | |-- ru_RU.aff





                                share|improve this answer




























                                  0














                                  Structure of elasticsearch/config must be



                                  - conf
                                  |-- hunspell
                                  | |-- en_US
                                  | | |-- en_US.dic
                                  | | |-- en_US.aff
                                  | |-- ru_RU
                                  | | |-- ru_RU.dic
                                  | | |-- ru_RU.aff





                                  share|improve this answer


























                                    0












                                    0








                                    0







                                    Structure of elasticsearch/config must be



                                    - conf
                                    |-- hunspell
                                    | |-- en_US
                                    | | |-- en_US.dic
                                    | | |-- en_US.aff
                                    | |-- ru_RU
                                    | | |-- ru_RU.dic
                                    | | |-- ru_RU.aff





                                    share|improve this answer













                                    Structure of elasticsearch/config must be



                                    - conf
                                    |-- hunspell
                                    | |-- en_US
                                    | | |-- en_US.dic
                                    | | |-- en_US.aff
                                    | |-- ru_RU
                                    | | |-- ru_RU.dic
                                    | | |-- ru_RU.aff






                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Apr 16 '18 at 12:21









                                    Дастан МукажанДастан Мукажан

                                    11




                                    11























                                        -1














                                        Turns out that the symbolic links are not followed by elasticsearch (see here), so the ACTUAL files need to be at the location specified.



                                        Also, the file permissions for the hunspell files need to allow the elasticsearch user to access them.
                                        Ex (in /etc/elasticsearch/hunspell/):




                                        drwxr-xr-x 2 root elasticsearch 4.0K Sep 9 09:24 nl_NL







                                        share|improve this answer
























                                        • Can you at least specify which directory you put your hunspell dictionaries? Thanks

                                          – mordack550
                                          Nov 7 '17 at 15:46











                                        • That depends on the installation method (and the elasticsearch version), so it's better to look where your copy has been installed. Then just put the hunspell directory next to your config file.

                                          – John D
                                          Nov 14 '17 at 23:55


















                                        -1














                                        Turns out that the symbolic links are not followed by elasticsearch (see here), so the ACTUAL files need to be at the location specified.



                                        Also, the file permissions for the hunspell files need to allow the elasticsearch user to access them.
                                        Ex (in /etc/elasticsearch/hunspell/):




                                        drwxr-xr-x 2 root elasticsearch 4.0K Sep 9 09:24 nl_NL







                                        share|improve this answer
























                                        • Can you at least specify which directory you put your hunspell dictionaries? Thanks

                                          – mordack550
                                          Nov 7 '17 at 15:46











                                        • That depends on the installation method (and the elasticsearch version), so it's better to look where your copy has been installed. Then just put the hunspell directory next to your config file.

                                          – John D
                                          Nov 14 '17 at 23:55
















                                        -1












                                        -1








                                        -1







                                        Turns out that the symbolic links are not followed by elasticsearch (see here), so the ACTUAL files need to be at the location specified.



                                        Also, the file permissions for the hunspell files need to allow the elasticsearch user to access them.
                                        Ex (in /etc/elasticsearch/hunspell/):




                                        drwxr-xr-x 2 root elasticsearch 4.0K Sep 9 09:24 nl_NL







                                        share|improve this answer













                                        Turns out that the symbolic links are not followed by elasticsearch (see here), so the ACTUAL files need to be at the location specified.



                                        Also, the file permissions for the hunspell files need to allow the elasticsearch user to access them.
                                        Ex (in /etc/elasticsearch/hunspell/):




                                        drwxr-xr-x 2 root elasticsearch 4.0K Sep 9 09:24 nl_NL








                                        share|improve this answer












                                        share|improve this answer



                                        share|improve this answer










                                        answered Sep 12 '16 at 3:17









                                        John DJohn D

                                        2,11342542




                                        2,11342542













                                        • Can you at least specify which directory you put your hunspell dictionaries? Thanks

                                          – mordack550
                                          Nov 7 '17 at 15:46











                                        • That depends on the installation method (and the elasticsearch version), so it's better to look where your copy has been installed. Then just put the hunspell directory next to your config file.

                                          – John D
                                          Nov 14 '17 at 23:55





















                                        • Can you at least specify which directory you put your hunspell dictionaries? Thanks

                                          – mordack550
                                          Nov 7 '17 at 15:46











                                        • That depends on the installation method (and the elasticsearch version), so it's better to look where your copy has been installed. Then just put the hunspell directory next to your config file.

                                          – John D
                                          Nov 14 '17 at 23:55



















                                        Can you at least specify which directory you put your hunspell dictionaries? Thanks

                                        – mordack550
                                        Nov 7 '17 at 15:46





                                        Can you at least specify which directory you put your hunspell dictionaries? Thanks

                                        – mordack550
                                        Nov 7 '17 at 15:46













                                        That depends on the installation method (and the elasticsearch version), so it's better to look where your copy has been installed. Then just put the hunspell directory next to your config file.

                                        – John D
                                        Nov 14 '17 at 23:55







                                        That depends on the installation method (and the elasticsearch version), so it's better to look where your copy has been installed. Then just put the hunspell directory next to your config file.

                                        – John D
                                        Nov 14 '17 at 23:55




















                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Stack Overflow!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f39406897%2fwhere-to-put-hunspell-dictionary-for-elasticsearch%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        MongoDB - Not Authorized To Execute Command

                                        How to fix TextFormField cause rebuild widget in Flutter

                                        in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith