CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Inconsistent search interface for Advanced Search/Contact Reference fields
Pages: [1]

Author Topic: Inconsistent search interface for Advanced Search/Contact Reference fields  (Read 275 times)

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Inconsistent search interface for Advanced Search/Contact Reference fields
October 29, 2014, 01:34:25 pm
When:
* Using Advanced Search's "Complete OR Partial Name" field; and
* Inputting two or more words (e.g. "John Smith")

You get back everyone whose name matches John OR Smith.  E.g. John Jones or Alice Smith.  This is NOT the same behavior as Quick Search.  I tried changing the "automatic wildcard" setting, which predictably had no effect.

Aside from the inconsistency between Quick Search and Find Contacts/Advanced search/Contact Reference lookups, it makes it near impossible to search for certain contacts - for instance, a health organization in California can't look up "California Department of Public Health".  The search builder is a partial solution, but doesn't resolve the issue for contact reference lookups.

I have to imagine this is a more computationally intensive SQL search - so I'm wondering if there's an argument for it?  I think it would be better for a search for "John Smith" to return just "John Smith" and "John Smithson".
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Inconsistent search interface for Advanced Search/Contact Reference fields
October 29, 2014, 01:38:20 pm
Are you talking about this issue? https://issues.civicrm.org/jira/browse/CRM-15442
I'm not exactly sure what you're saying - are you saying the fix I did for entityRef was good or bad, or should be applied to adv search as well?
Try asking your question on the new CiviCRM help site.

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Inconsistent search interface for Advanced Search/Contact Reference fields
October 29, 2014, 01:50:50 pm
Coleman - the issue I'm talking about is implied by CRM-15442, yes.  As you said in your comment, the problem would be best fixed at a lower level.  I can see the hesitancy to do so in a point release, but it would be an excellent fix for 4.6.  Also, I tested on a copy of master that was updated 10/21/14 - but I'm not seeing changed behavior on a Contact Reference.  Do contact reference lookups not use EntityRef?  I sort of assumed they were BUILT for contact references :)
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Inconsistent search interface for Advanced Search/Contact Reference fields
October 29, 2014, 01:53:21 pm
Might just be that we haven't merged changes upstream lately.
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Inconsistent search interface for Advanced Search/Contact Reference fields

This forum was archived on 2017-11-26.