batchblue / batchbook-api

Official API documentation for Batchbook
http://batchbook.com
12 stars 2 forks source link

Fetching people with email returns all record where email is similar #12

Closed alokswain closed 10 years ago

alokswain commented 11 years ago

Hi,

I tried the following two requests.

/api/v1/people.xml?email=b@example.com&auth_token=xyz /api/v1/people.xml?email=sbandy0401@example.com&auth_token=xyz

Its mentioned in the docs that search with email is an exact search but the first record returns multiple records where the email matches it. The email id ex - sbandy0401@example.com - returns one record where as search with email id b@example.com returns the record matching sbandy0401@example.com and other records.

Is that how email is searched (performing a similar search and not returning records where the email exactly matches the email id passed in request)

alokswain commented 11 years ago

Any info on how to tackle this issue would be helpful.

alokswain commented 10 years ago

Closing this issue with as another search query with key as exact_email now serves this purpose.