My search function returns the correct results when I am using for example q=Cambri but when I try to search using for instance q=021 nothing is returned. In my database I have set postal_code field to be of type text and place_name field to be of type text also. Below is the python code for selecting element from the database:
"SELECT * FROM places WHERE ((postal_code LIKE :postal) OR (place_name LIKE :postal))"
:postal
. Maybe it should be something like:"SELECT * FROM places WHERE ((postal_code LIKE :CHECK_THIS) OR (place_name LIKE :CHECK_THIS))"