Token token = null;
while ((token = tokenStream.next()) != null) {
String termText = token.termText();
/* Contained in Title */
WildcardQuery titleQuery = new WildcardQuery(new Term(String.valueOf(INews.TITLE), termText));
allFieldsQuery.add(new BooleanClause(titleQuery, Occur.SHOULD));
/* Contained in Description */
WildcardQuery descriptionQuery = new WildcardQuery(new Term(String.valueOf(INews.DESCRIPTION), termText));
allFieldsQuery.add(new BooleanClause(descriptionQuery, Occur.SHOULD));
/* Contained in Attachment */
WildcardQuery attachmentQuery = new WildcardQuery(new Term(String.valueOf(INews.ATTACHMENTS_CONTENT), termText));
allFieldsQuery.add(new BooleanClause(attachmentQuery, Occur.SHOULD));
/* Matches Author */
WildcardQuery authorQuery = new WildcardQuery(new Term(String.valueOf(INews.AUTHOR), termText));
allFieldsQuery.add(new BooleanClause(authorQuery, Occur.SHOULD));
/* Matches Category */
WildcardQuery categoryQuery = new WildcardQuery(new Term(String.valueOf(INews.CATEGORIES), termText));
allFieldsQuery.add(new BooleanClause(categoryQuery, Occur.SHOULD));
}
/* Determine Occur (MUST, SHOULD, MUST NOT) */
Occur occur = getOccur(condition.getSpecifier(), matchAllConditions);