updated search engine and prefix query for tags instead of term query