• Extensions
  • Blomstra Search, an elasticsearch fulltext search extension

HD3D What happens after uninstalling this extension, does forum go back to the default search?

Yes

HD3D And is it possible to exclude some flarum-tags from the search results using this extension?

No.

    luceos Getting this error
    php flarum blomstra:search:index --recreate

    In StaticNoPingConnectionPool.php line 64:
    
      No alive nodes found in your cluster

      HD3D your connection settings seem to be incorrect or the elastic instance isn't up..

      • HD3D replied to this.

        luceos Do I have to set up elastic instance to get this extension working?

        I just followed the first post's instructions

        luceos username/password are either the admin user or another one created for this index

        Also, do you mean here my forums admin and it's password?

          HD3D no, the elastic search admin or index user.

          • HD3D replied to this.

            luceos Does it mean that I have to elastic on my server before installing this extension?

              22 days later

              Do I understand correctly that this search function does not search in discussion titles?

                luceos okay but i have some issues. for example i have a discussion with title: "Arbeitsstunden, Ferientage, Feiertage und Ferienbonus definieren".

                Now when I search for "Arbeitsstu", the discussion is suggested as a result. But as soon as I search for "Arbeitsstun" (one letter more at the end), no result is displayed.

                What could be the reason for this?

                  maisen20 did you select the right language? And you might need to rerun seeding after that.

                  The language is set correctly (German) and I have already deleted the index "flarum_forum" completely and created it again.

                  It seems that it does not find results when my search string is longer than 10 characters.

                    When i check the console i can see the request url is:

                    /api/blomstra/search/discussions?filter[q]=filtervorlagen&page[limit]=3&include=mostRelevantPost

                    I can't see errors in the logs and the result is:

                    {"links":{"first":"https:\/\/community.domain.com\/api\/blomstra\/search\/discussions?filter%5Bq%5D=filtervorlagen\u0026page%5Blimit%5D=20\u0026include=mostRelevantPost\u0026type=discussions"},"data":[]}

                      maisen20 please reach out to me on discord (my dm's are open if you joined Flarum discord) so you can share your url privately and I can take a look. That's much faster than this back and forth 😉

                      To inform everyone:

                      I figured out what the reason for the limitation to 10 characters is.
                      In the file "/vendor/blomstra/search/src/Commands/BuildCommand.php" there are the values for 'index.max_ngram_diff' and 'max_gram' which tell ES's tokenizer how long the token can be. These values are set to 10. I assume that this is the case for all of you.

                      This means words containing more than 10 characters will not be tokenized and therefore these words/posts will not be found.

                      5 months later

                      composer require blomstra/search:"*"

                      l want install this extension but write a error words

                        luceos but not understand. What is?

                        Elastic Endpoint
                        Username
                        Password
                        Index

                        and not have Analyzer language : Azerbaijan

                        and how to fixed size searchbox?