Add optimized indexing capabilities for phone number values.
authorTristan Van Berkom <tristanvb@openismus.com>
Fri, 15 Feb 2013 13:44:34 +0000 (22:44 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Sun, 17 Feb 2013 10:28:46 +0000 (19:28 +0900)
commitaf26242913d67848c3d013fea23cb0f98605c228
treecf6cf5a5d94267536d5c74aca175fabf80b74db5
parent920c4cd98e3d242b0d12144d82be42e4baade3fa
Add optimized indexing capabilities for phone number values.

Creating indexes with normalized phone numbers permits fast phone number
lookup even if the stored vCards or the queried phone numbers are freely
formatted or incomplete.

The numbers are formatted according to E.164 when building the index.
Incomplete numbers are prefixed with a country-code matching the current
locale settings while processing query results.

Updated Mathias Hasselmann's patch on bug 689622 to apply to current master.
addressbook/libebook-contacts/e-book-contacts-types.h
addressbook/libebook-contacts/e-source-backend-summary-setup.c
addressbook/libedata-book/e-book-backend-sqlitedb.c
tests/libebook/client/test-client-custom-summary.c
tests/libebook/test-query.c