Changed files IndexSearcher.java and MetaDataParser.java.

Changed the return value of method getSearchSimilarity() of class MetaDataReader. Also added additional metadata checks in different search() methods of class IndexSearcher().