Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-15498

Search strings are joined via OR, should be joined via AND

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 4.5.1
    • Fix Version/s: None
    • Component/s: CiviCRM Search
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      Name search at civicrm/contact/search and via API at use master address splits the given string at blanks and joins them for query with OR.

      former query (proposed):
      "Office for Development" => WHERE name LIKE "%Office for Development%"

      4.5.1 query (proposed):
      "Office for Development" => WHERE name LIKE "%Office%" OR name LIKE "%for%" OR name LIKE "%Development%"

      Joined via OR the result get's worse every time I'm trying to get more precise.

      Work around from SYSTOPIA Organisationsberatung:
      Replace blanks with underscore in the input.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mielert Fritz Mielert
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified