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) »
  • Cant search for contacts on first name
Pages: [1]

Author Topic: Cant search for contacts on first name  (Read 2311 times)

flerk

  • Guest
Cant search for contacts on first name
February 07, 2008, 02:13:25 pm
I get this....and i do for a fact know there are two members with the name (which i edited out for this example), i registred them myself, i find them if i search for groups:



status
    No matches found for:

        * Namn lika som - "namn"


    Suggestions:

        * check your spelling
        * try a different spelling or use fewer letters
        * if you are searching within a Group or for Tagged contacts, try 'any group' or 'any tag'
        * add a New Individual, Organization or Household
        * make sure you have enough privileges in the access control system


woyzeck

  • Guest
Re: Cant search for contacts on first name
February 07, 2008, 02:32:58 pm
Put the % wildcard in from of the firstname.   It searches the full name in this format

lastname, firstname

So if you wanted to search for flerk use %flerk.

Woyzeck

flerk

  • Guest
Re: Cant search for contacts on first name
February 07, 2008, 02:35:25 pm
Thank you!! Brilliant!

Man this module is useful....perfect for organizing!

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Cant search for contacts on first name
March 11, 2008, 11:37:19 am
Hello,

Is it possible to change the setting of CiviCRM so on the search block or the other block to search both on the first and lastname, without having to type the % in front of the first name ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Cant search for contacts on first name
March 11, 2008, 12:06:08 pm

you will need to go in and change the code (CRM/Contact/BAO/Query.php, search for sortName and fix there)

That used to be our default but we changed it in 1.7 or so. It is incredibly inefficient for large number of contacts (since its a scan of the table)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Cant search for contacts on first name

This forum was archived on 2017-11-26.