Knowledge base search no longer searches folders

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bandtank
    Active Community Member
    • Mar 2017
    • 379

    Knowledge base search no longer searches folders

    I noticed about two months ago that the KB search stopped returning results if the articles were in folders. Is that the intended behavior? It used to be that every article was listed in the KB section by default and then the list could be filtered by clicking on folders. Now it's the opposite: no articles are shown unless I click on a folder/category that has been explicitly added to the individual article. That makes the search function very difficult to understand for users. The way it was before worked very well: every article was shown and searched by default and categories could optionally be added for better organization. How do I get that functionality back?

    I'm using Espo 5.0.1 and I think this started happening around 4.8.4 or possibly a little earlier. I did not modify any files or behaviors. It was due to an upgrade to the core software.
    Last edited by bandtank; 01-08-2018, 04:58 PM.
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    You can expand folder contents by clicking on the folder icon. State will be stored so no need to click every time.

    Click image for larger version  Name:	kb.png Views:	1 Size:	11.4 KB ID:	33574
    Last edited by yuri; 01-08-2018, 07:02 PM.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • bandtank
      Active Community Member
      • Mar 2017
      • 379

      #3
      Perfect. Thanks.

      Comment

      • mmandell
        Member
        • Jul 2014
        • 99

        #4
        yuri is there a way to have the default behavior to search inside of all folders for the query?

        We are having a lot of problems finding articles now.

        Comment

        • bandtank
          Active Community Member
          • Mar 2017
          • 379

          #5
          The default behavior shouldn’t really matter because the open/close setting persists once it has been changed. Why can’t you teach your users about it? I sent an email to explain how it works and that was the last time I heard a complaint.

          Comment

          • mmandell
            Member
            • Jul 2014
            • 99

            #6
            bandtank can you share the email if it can help with search. Right now the KB is basically useless without search.

            Comment

            • bandtank
              Active Community Member
              • Mar 2017
              • 379

              #7
              Actually, I am seeing a slightly odd behavior that makes searching somewhat difficult. I have an article called "How to send and receive a fax," which I have been unable to find recently.

              In my config.php file, I have the following settings:
              Code:
              'textFilterUseContainsForVarchar' => true
              'fullTextSearchMinLength' => 2
              I added Name to the Knowledgebase Article entity definition's Text Filter Fields list and I enabled Full Text Search as well.

              Here's what happens when I try to search in the KB article search box:

              Code:
              [FONT=courier new]Article name: How to send and receive a fax[/FONT]
              
              [FONT=courier new]Search Term     Article Found
              fax             no
              a fax           no
              receive a fax   yes
              eceive a fax    no
              ceive a fax     no
              eive a fax      no
              ive a fax       no
              ve a fax        no
              e a fax         no
               a fax          no
              a fax           no
               fax            no
              fax             no
              ax              no
              x               no
              %receive a fax  yes
              %eceive a fax   no
              %ceive a fax    no
              %eive a fax     no
              %ive a fax      no
              %ve a fax       no
              %e a fax        no
              % a fax         no
              %a fax          no
              % fax           no
              %fax            yes
              %ax             yes
              %x              yes[/FONT]
              Using Name -> Contains -> fax works as expected, but that's a lot more effort and shouldn't be necessary.

              This makes searching quite difficult. I'm not sure if this behavior changed recently, but I'm not sure how to fix it. The behavior is not related to folders as it happens at any search level in my KB.

              Shouldn't the search simply work like this?
              Code:
              %<input>%
              Last edited by bandtank; 07-11-2018, 09:31 PM.

              Comment

              • mmandell
                Member
                • Jul 2014
                • 99

                #8
                I am noticing the same which makes search basically useless.

                Comment

                • yuri
                  Member
                  • Mar 2014
                  • 8440

                  #9
                  1. Mysql has own parameter ft_min_word_len you can change.
                  2. If your table is myisam and mysql is 5.7, try to convert to innodb.
                  If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                  Comment

                  • yuri
                    Member
                    • Mar 2014
                    • 8440

                    #10
                    3. Use * wildcard for text filters.
                    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                    Comment

                    • yuri
                      Member
                      • Mar 2014
                      • 8440

                      #11
                      4, No need to enable full-text search unless you have thousands of records or want to use search operators: https://github.com/espocrm/documenta...ll-text-search.
                      If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                      Comment

                      • bandtank
                        Active Community Member
                        • Mar 2017
                        • 379

                        #12
                        I updated the KB article table to InnoDB, EspoCRM to 5.3.2, and I changed the ft_min_word_len parameter to 3. I still can't find the fax article using only the word fax. The only way I can get it to work is to do what's in the attached picture. After making that change, my KB searches are exactly what I would expect.
                        Last edited by bandtank; 07-12-2018, 01:43 PM.

                        Comment

                        • yuri
                          Member
                          • Mar 2014
                          • 8440

                          #13
                          Did you rebuild?
                          If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                          Comment

                          • bandtank
                            Active Community Member
                            • Mar 2017
                            • 379

                            #14
                            Originally posted by yurikuzn
                            Did you rebuild?
                            Yes. I cleared the EspoCRM cache, my local cache, used a private browsing window, and rebuilt the database multiple times before and after all of those steps.

                            It's actually still not working right. It's better, but I'm seeing behavior that doesn't make sense. I expect the search to return results for partial strings in titles and bodies, but it seems to only work when the word is a complete word, which I don't understand. See this video.

                            Comment

                            • yuri
                              Member
                              • Mar 2014
                              • 8440

                              #15
                              I tested with

                              textFilterContainsMinLength => 3

                              and it worked fine.
                              If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

                              Comment

                              Working...