tohsakarat as I shared in earlier posts, despite all my tests with TNT, I wasn't able to get half of their advertised features to work, so maybe I have something misconfigured in the extension itself. I must have enabled boolean search based on the description in their documentation, but I didn't remember what exactly it provided.

It should be fine to change any of the settings, it's just full text search after all, none of the Scout drivers need to handle any special input other than the text provided by the user.

18 days later

OK. Very good extension with Meilisearch !
Is there a way to make a better ranking in the discusion title ?

3 months later

Hi, Since few day and update:

2024-09-11 07:24:16] flarum.ERROR: Illuminate\Contracts\Container\BindingResolutionException: Unresolvable dependency resolving [Parameter #0 [ <required> string $url ]] in class Meilisearch\Client in /vendor/illuminate/container/Container.php:1104

    llaumgui I'll try to take a look over the next few days.

    In the meantime, you should maybe try to force a specific Meilisearch PHP client version using the command in the README.

    Edit: I see the same problem was discussed in this thread back in January and fixed itself, so maybe it's related to another extension being used at the same time.

      clarkwinkelmann In the meantime, you should maybe try to force a specific Meilisearch PHP client version using the command in the README.

      Yes, I switch to 0.23 and it's work. What is the last version working ?

      16 days later

      Question; with meilisearch, is there a way to boost recent post ?
      I thinks index is only build with id / content without date ?

        llaumgui that's correct, dates are not indexed are the moment. Even if they were, I'm not sure how we could use this in the Meilisearch query?

          2 months later

          I have everything working just fine with Meilisearch. Thanks for the extensions.

          I wonder if it's possible to differentiate the searching result by Discussion(title) or Posts (content) just as what ↓ does?

          and P.S. Could we target a post by it's post ID (not discussion ID)?

            Teddan I don't understand your question. The posts and discussions indexes are combined in the results to offer the Flarum full text search. There is currently no way to change the weight of each index in the algorithm. There is also no gambits in place to search specific attributes, but this could be implemented and use Scout as well.

            You can search in posts with my post-stream-search extension. It will use the posts index to search within a discussion.

            2 months later
            • Edited

            Hi , I installed the extension and install teamtnt/laravel-scout-tntsearch-driver as well.
            When I run command php flarum scout:import-all , I got these errors.
            And TNTSearch is not working.

            [29-Jan-2025 07:16:57 UTC] PHP Deprecated:  Creation of dynamic property TeamTNT\TNTSearch\TNTSearch::$fuzziness is deprecated in /home/user1/public_html/flarum/vendor/clarkwinkelmann/flarum-ext-scout/src/FlarumEngineManager.php on line 80
            [29-Jan-2025 07:16:57 UTC] PHP Deprecated:  Creation of dynamic property TeamTNT\TNTSearch\TNTSearch::$fuzzy_distance is deprecated in /home/user1/public_html/flarum/vendor/clarkwinkelmann/flarum-ext-scout/src/FlarumEngineManager.php on line 83
            [29-Jan-2025 07:16:57 UTC] PHP Deprecated:  Creation of dynamic property TeamTNT\TNTSearch\TNTSearch::$fuzzy_prefix_length is deprecated in /home/user1/public_html/flarum/vendor/clarkwinkelmann/flarum-ext-scout/src/FlarumEngineManager.php on line 84
            [29-Jan-2025 07:16:57 UTC] PHP Deprecated:  Creation of dynamic property TeamTNT\TNTSearch\TNTSearch::$fuzzy_max_expansions is deprecated in /home/user1/public_html/flarum/vendor/clarkwinkelmann/flarum-ext-scout/src/FlarumEngineManager.php on line 85
            [29-Jan-2025 07:16:57 UTC] PHP Deprecated:  Creation of dynamic property TeamTNT\TNTSearch\TNTSearch::$asYouType is deprecated in /home/user1/public_html/flarum/vendor/clarkwinkelmann/flarum-ext-scout/src/FlarumEngineManager.php on line 86
            [29-Jan-2025 07:16:59 UTC] PHP Deprecated:  Optional parameter $upload declared before required parameter $contents is implicitly treated as a required parameter in /home/user1/public_html/flarum/vendor/fof/upload/src/Adapters/Flysystem.php on line 55
            [29-Jan-2025 07:16:59 UTC] PHP Deprecated:  mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /home/user1/public_html/flarum/vendor/teamtnt/tntsearch/src/Support/Tokenizer.php on line 10

            Here is my Flarum info

            Flarum core: 1.8.9
            PHP version: 8.3.14
            MySQL version: 10.5.27-MariaDB-cll-lve
            Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, readline, Reflection, SPL, session, standard, bcmath, bz2, calendar, ctype, curl, dba, dom, enchant, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv,imap, intl, ldap, exif, mysqlnd, odbc, PDO, pgsql, Phar, posix, pspell, shmop, SimpleXML, snmp, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlwriter, xsl, zip, mysqli, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, xmlreader, i360, Zend OPcache
            +-------------------------------------------+---------+--------+
            | Flarum Extensions                         |         |        |
            +-------------------------------------------+---------+--------+
            | ID                                        | Version | Commit |
            +-------------------------------------------+---------+--------+
            | flarum-flags                              | v1.8.2  |        |
            | flarum-sticky                             | v1.8.2  |        |
            | flarum-tags                               | v1.8.3  |        |
            | flarum-lock                               | v1.8.2  |        |
            | flarum-approval                           | v1.8.2  |        |
            | clarkwinkelmann-advanced-search-highlight | 1.0.3   |        |
            | v17development-blog                       | v0.8.0  |        |
            | pattinsonfuture-lang-traditional-chinese  | 1.0.2   |        |
            | kk14569-moderno                           | v1.0.3  |        |
            | fof-upload                                | 1.7.1   |        |
            | fof-formatting                            | 1.0.3   |        |
            | flarum-suspend                            | v1.8.4  |        |
            | flarum-subscriptions                      | v1.8.1  |        |
            | flarum-statistics                         | v1.8.1  |        |
            | flarum-mentions                           | v1.8.5  |        |
            | flarum-markdown                           | v1.8.1  |        |
            | flarum-likes                              | v1.8.1  |        |
            | flarum-lang-english                       | v1.8.0  |        |
            | flarum-extension-manager                  | v1.0.6  |        |
            | flarum-emoji                              | v1.8.1  |        |
            | flarum-bbcode                             | v1.8.0  |        |
            | clarkwinkelmann-scout                     | 0.3.5   |        |
            | askvortsov-markdown-tables                | v1.2.1  |        |
            +-------------------------------------------+---------+--------+

            Can anyone tell me what to do now ?

              stl what makes you think it doesn't work?

              If the deprecation warnings only appear over the command line, they shouldn't prevent anything from working. You should in any case disable deprecation warnings in your php.ini (and set display_errors=Off) to prevent warnings from breaking the Flarum API.

              I couldn't fix those warnings even if I wanted to as they are in TNT source code, not mine, so nothing to do except ignore them.

              Thanks for your reply.
              I thought these messages mean that something went wrong.

              I try to search , but there is no result.
              When I switch to meilisearch , I can get search results.
              but no result if I switch to TNTSearch.

              That's why I think it dose not work.
              Do I need to configure something or install any other packages?

                stl try disabling the PHP warning output as suggested in my previous post then try re-indexing. If it still doesn't work I have no idea what the problem could be.

                As discussed earlier in this thread, when I implemented TNT support it worked but was basically no better than Flarum's built-in search. I couldn't get any of the advertised features of TNT to work except basic search. For those reasons I recommend not bothering with TNT at all.