Okay
  Public Ticket #3539036
Search Case Sensitive
Closed

Comments

  • Jamie started the conversation

    It appears search filters are case sensitive, is it possible to make them non case sensitive.

  •  1,708
    Miloš replied

    Hi Jamie,

    This is not related to our Plugin, but rather to which default Database Collation you are using on your WordPress Database. 

    In our tables, we made case insensitive and accent insensitive Database Collation, so any search we make on a Table will return results with and without upper/lower case or accents. 

    Such as this example, if we have a cell in a Table linked from a data source such as Excel or any other, if there is a value as “André” and another first name also as “Andre”, we can search in this table and get both returned if we search for “Andre” or “André”.

    1579187602.png
    4734465348.png

    You need to check in your WordPress Database, what is set for your Collation, and choose any that is accent insensitive. 

    For this test today, we are using utf8mb3_general_ci collation on our Table, and it works as an accent insensitive search; 

    but you can search online about this topic and you can easily find various tutorials which Database collations are accent insensitive. For example, in this Post from Stack Overflow someone asked which are case insensitive and accent insensitive Collations, and they got a good answer. 

    In short, the CI in DB Collations stands for “Case Insensitive” and AI for “Accent Insensitive“. 

    Let me know if that helps.

    Thank you.



    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables