Analyzer analyzer = new StandardAnalyzer(Version.LUCENE_CURRENT);
BooleanQuery orQuery = new BooleanQuery();
BooleanQuery andQuery = new BooleanQuery();
for(int i=0; i< fields.length;i++){
Query query = new FuzzyQuery(new Term(fields[i], queryString));
query = query.rewrite(searcher.getIndexReader());
orQuery.add(query, BooleanClause.Occur.SHOULD);
}
andQuery.add(orQuery, BooleanClause.Occur.MUST);
if(metaDataToSearch != null){
//search for query string on metadata name field and content