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 »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Search Optimization for closest match
Pages: [1]

Author Topic: Search Optimization for closest match  (Read 524 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Search Optimization for closest match
April 08, 2013, 10:37:22 am
On one of my site's running 4.3 I have the organization of 'L.L. Bean' entered in. When my employees are searching for this, some try to search for 'll bean' instead of 'l.l. bean'. Is there a way to get the search to return the closest match so that this would come up in it? Another example which I just put up on the demo site would be cases where there is a space that confuses the search box. Let's say I have an organization called 'The CT Job Rack' and 'Jobrack'. If I type in 'jobrack' I would want it to return both these, but because of the space it only returns 'Jobrack'. Are there suggestions on how to optimize for this?

In addition, I apologize if this is an overly easy question -- is there no 'legal name' search field on the advanced search form?

Thanks so much,
Emily

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Search Optimization for closest match
April 08, 2013, 01:44:51 pm
pretty sure there is no easy / out of the box way to do this - would require a bit of tweaking of the quick search tool
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Search Optimization for closest match
April 08, 2013, 02:24:31 pm
Thanks Michael - can you point me to documentation on how to modify that or any examples? Much appreciated!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Search Optimization for closest match
April 08, 2013, 03:03:26 pm
This extension allows to have a custom way of fetching the contacts in the autocomplete

https://github.com/TechToThePeople/eu.tttp.qlookup

look at the custom api, you could add your own queries to remove the "." or search on the legal name or ...

https://github.com/TechToThePeople/eu.tttp.qlookup/blob/master/api/v3/Contact/Getttpquick.php

Hope this helps.
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Search Optimization for closest match

This forum was archived on 2017-11-26.