Process incoming search queries and generate corresponding solr query