Updated pom.xml and fixed search code.