Question: textFilterUseContainsForVarchar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sloff
    Member
    • Feb 2018
    • 47

    Question: textFilterUseContainsForVarchar

    Hi

    With regards to the link below, am I correct that if I add the property `textFilterUseContainsForVarchar` and set it to true within my `config.php` that when searching it will not only match the starting portion, but if the query is in the middle or end as well?
  • Sloff
    Member
    • Feb 2018
    • 47

    #2
    It appears that that is exactly what happens, only problem is I have no idea where to set textFilterUseContainsForVarchar, because after a rebuild it is removed from config.php

    Comment

    • tanya
      Senior Member
      • Jun 2014
      • 4308

      #3
      Hi,
      without this property a searching works as "Starts with",
      with this property - in mode "Contains"

      data/config.php
      Save, refresh the page, after rebuild. It hasn't be removed after rebuild. What version do you use?

      Comment

      • Sloff
        Member
        • Feb 2018
        • 47

        #4
        I'm using version 5.0.5

        Comment


        • tanya
          tanya commented
          Editing a comment
          Just tested on this version... Isn't removed
      • Sloff
        Member
        • Feb 2018
        • 47

        #5
        Is this correct (See photo below)? It's within my data/config.php file

        Comment

        • tanya
          Senior Member
          • Jun 2014
          • 4308

          #6
          Looks correct. Maybe the problem is with cache.
          In the next version this property could be set in Administration

          Comment

          • Sloff
            Member
            • Feb 2018
            • 47

            #7
            I think you might be correct with regards to the cache, I just kept adding it to the file and rebuilding, and now it's not being removed anymore. Thank for the assist!

            Comment

            Working...