If you are trying to search your own database then you should perform the select statement based on some meta data like tags / text.