Searching in the knowledge database

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • peterberlin
    Active Community Member
    • Mar 2015
    • 1004

    Searching in the knowledge database

    Hello

    I have added a multi-enum field to the knowledge base. It is used for keywording.
    Unfortunately,
    I cannot select this field in the Entity Manager under Field Text Search.

    The search for contents of this field only works in one product category/folder.
    This means that my idea of keywording cannot be used properly.

    Does anyone have another idea to find the records of the knowledge database better?

    ​Peter
  • Kharg
    Senior Member
    • Jun 2021
    • 410

    #2
    Hi,
    I use a custom hook to put all the values from an array field to a text field separated by comma "Keyword1, Keyword2, Keyword3"

    Comment


    • eymen-elkum
      eymen-elkum commented
      Editing a comment
      formula is workable as well
  • peterberlin
    Active Community Member
    • Mar 2015
    • 1004

    #3
    Thank you.

    I have no knowledge about hook. I know a bit about formula.
    but with which formula command do I split the array field?​

    Comment

    • yuri
      Member
      • Mar 2014
      • 8454

      #4
      Code:
      auxKeywordsField = array\join(yourMultiEnumField, ' ');
      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


      • peterberlin
        peterberlin commented
        Editing a comment
        Thank you very much.
    Working...