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) »
  • Limit search to ID and Name
Pages: [1]

Author Topic: Limit search to ID and Name  (Read 1082 times)

sogen

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: latest
  • CMS version: Drupal 7.16
  • MySQL version: latest
  • PHP version: 5
Limit search to ID and Name
November 04, 2012, 02:38:01 pm
Hi, is there a way to limit the search to only ID and Name of people?

Currently "full-text search" shows: "Contacts, Activities, Contributions, Memberships" in the dropdown.

Using Drupal 7 and latest CiviCRM

Thx

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: Limit search to ID and Name
November 04, 2012, 02:44:11 pm
Search Preferences are here:
<sitename>/civicrm/admin/setting/search?reset=1

Also found at: Administer menu -> Customize Data and Screens -> Search Preferences.

Unfortunately, contact ID isn't a choice there, though you CAN remove searching by e-mail.  Also note that this is for "Autocomplete Contact Search", not full-text search.  Full-text search is what it sounds like - it's all text, and thus not very performance efficient for day-to-day use.

For what you want, you can write a custom search.  I'm guessing that if you wrote a patch to add "contact ID" to the list of Autocomplete Contact Search options, it's likely to be accepted into core, so that's also an option if that's in your skillset.

Jon
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: Limit search to ID and Name
November 05, 2012, 10:41:47 am
Contact ID is coming as part of a workover of QuickSearch in 4.3 afaik
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

sogen

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: latest
  • CMS version: Drupal 7.16
  • MySQL version: latest
  • PHP version: 5
Re: Limit search to ID and Name
November 05, 2012, 11:42:52 am
@gold, @pete: thanks!

Jason W

  • I post frequently
  • ***
  • Posts: 197
  • Karma: 12
  • jason@civitrainingtutorials.com
  • CiviCRM version: 4.2
  • CMS version: Drupal 7
  • MySQL version: 5.x
  • PHP version: 5.x.x
Re: Limit search to ID and Name
November 06, 2012, 06:22:19 am

Hello Sogen,
You can also Set up a profile that includes the Contact ID and Name

fields, Go to the previously mentioned search preferences and set it as your

default search profile.

Cheers,
Jason
civiTrainingTutorials
"Helping You Help Others"

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Limit search to ID and Name
November 06, 2012, 07:21:48 am
Hi,

With this extension, you can type the id of the contact and enter, it will go to the contact summary.

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

Would like to have feedback on it, hopefully solves your need

X+
-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) »
  • Limit search to ID and Name

This forum was archived on 2017-11-26.