text_query module

class text_query.TextQuery(query)[source]

This class encapsulates the processing we are doing both for indexed strings like given_name and family_name and for a query string. Currently the processing includes normalization (see doc below) and splitting to words. Future stuff we might add: indexing of phone numbers, extracting of locations for geo-search, synonym support.

text_query.normalize(string)[source]

Normalize a string to all uppercase, remove accents, delete apostrophes, and replace non-letters with spaces.