Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-19547 rationalise expensive use of exactMatch search on quicksearch #9301

Merged
merged 1 commit into from
Nov 1, 2016

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Oct 20, 2016

  • do not do exact match when the string is just a wildcard (it will never be an exact match)
  • do not do exact match when the search is an email & there is no @ (it will never be an exact match)
  • do not do exact match when the search is for sort_name and prepending wildcards is disabled for the site (it
    is functionally equivalent

- do not do exact match when the string is just a wildcard (it will never be an exact match)
- do not do exact match when the search is an email & there is no @ (it will never be an exact match)
- do not do exact match when the search is for sort_name and prepending wildcards is disabled for the site (it
is functionally equivalent

Change-Id: I17506264eb24f88b6818b014ce248580df1d962c
@colemanw
Copy link
Member

colemanw commented Nov 1, 2016

Code looks good and includes lots of tests.

@eileenmcnaughton eileenmcnaughton deleted the quicksearch branch November 2, 2016 06:56
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Dec 30, 2016
- do not do exact match when the string is just a wildcard (it will never be an exact match)
- do not do exact match when the search is an email & there is no @ (it will never be an exact match)
- do not do exact match when the search is for sort_name and prepending wildcards is disabled for the site (it
is functionally equivalent

Upstream PR civicrm#9301

Upstream PR includes unit tests

Bug:T147344

Change-Id: Ie2593cd37f98be5a43d3a606121d679b03aa2952
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants