Announcement

Collapse
No announcement yet.

MultiEnum issue when searching

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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


  • #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.

    Comment


    • #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


      • #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

        Comment


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

          Comment

          Working...
          X