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) »
  • AJAX contact search not returning all contacts
Pages: [1]

Author Topic: AJAX contact search not returning all contacts  (Read 997 times)

ken

  • I live on this forum
  • *****
  • Posts: 916
  • Karma: 53
    • City Bible Forum
  • CiviCRM version: 4.6.3
  • CMS version: Drupal 7.36
  • MySQL version: 5.5.41
  • PHP version: 5.3.10
AJAX contact search not returning all contacts
October 28, 2009, 10:53:29 pm
I'm finding that with v3.0.1 on Joomla that the AJAX search box (top left corner) is not returning all possible matches.

I'm still investigating, so I don't know the pattern, but sometimes it's because there are too many results and only the first are shown. More concerning is that sometimes there are contacts missing (the database contains 15 Robinsons, but 'Robinson' shows only 2 results in the AJAX search box).

Has anyone else observed this behaviour?

Ken

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: AJAX contact search not returning all contacts
October 29, 2009, 04:10:08 am
Ken:

Can you give exact steps to replicate this issue on http://drupal.demo.civicrm.org.

thanks

Kurund
Found this reply helpful? Support CiviCRM

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: AJAX contact search not returning all contacts
October 29, 2009, 10:10:15 am
Ok, might have discovered something.

Typed "European", and the list looked like it only displayed the subset of contacts containing European within the previous cached list on "Europea"

ie. instead of firing a new search request on the server at every char typed, it seems that if you are too fast/not fast enough or whatever event, it decides to simply limit the search from within the cache it has already from the previous search.

If I'm right, we need a lot of contacts, so you have more than 15 (or whatever is the limit of the search) contacts on ABC%, but when you type the D of ABCD, instead of doing a search on ABCD% it simply limit the results on the subset of the first 15 ABC% that contains ABCD, and never displays a ABCD% that wasn't in the first 15 ABC.

It should be noted that I couldn't reproduce on the dev server, that is too close from the client, but could on the production sever that is 30ms away.

ie. a cache+timing issue, will be lovely to try replicating ;) Can someone try reproducing with their datas?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Nailed it !
October 29, 2009, 10:27:55 am
The goal it to type slowly and let the server return a list, on the following letters, the autocomplete doesn't query the server anymore but limit itself on the previously retrieved sub list.

http://issues.civicrm.org/jira/browse/CRM-5318
-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) »
  • AJAX contact search not returning all contacts

This forum was archived on 2017-11-26.