MultiEnum issue when searching

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wtconseil
    Active Community Member
    • Apr 2015
    • 335

    MultiEnum issue when searching

    Hi

    i have a MultiEnum Attribute with the 3 given values : "foo", "bar", "foo bar"
    When doing some research with filter on this multienum : "foo" ...

    I have the rows matching "foo" + "foo bar" ...

    issue with "string in string" ?

    I was expecting to only got "foo" rows

  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hi,

    Unfortunately searching by multi-enum fields has technical constraints. We didn't want to a search ability but people asked for it. I believe that in future we will improve it.
    Last edited by yuri; 03-20-2017, 10:08 AM.
    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

    • wtconseil
      Active Community Member
      • Apr 2015
      • 335

      #3
      ok :-( i understand.

      Do you think that the only workaround would be to have unique Name that won't be substring of others values ?

      Comment

      • yuri
        Member
        • Mar 2014
        • 8440

        #4
        There are two options.

        1. To store all values in separate table. Now they are stored as a Json Array in a single column. We will have better search performance.
        2. Keep it stored as a json array and use MySQL functionŃ– like https://dev.mysql.com/doc/refman/5.7...functions.html
        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

        • wtconseil
          Active Community Member
          • Apr 2015
          • 335

          #5
          For option 2, be carefull because all users will have to upgrade to Mysql 5.7 ?

          Comment

          Working...