if (text.indexOf(StringPool.SPACE) == -1) {
text = KeywordsUtil.toWildcard(text);
}
QueryParser parser = new QueryParser(Version.LUCENE_CURRENT, field, new SimpleAnalyzer(Version.LUCENE_CURRENT));
Query query = parser.parse(text);
booleanQuery.add(query, BooleanClause.Occur.SHOULD);
}
}