if (maxResults != null) {
max = maxResults;
}
// handle dboption EXCLUDEDOCUMENT
WGContent excludeContent = (WGContent) parameters.get(WGDatabase.QUERYOPTION_EXCLUDEDOCUMENT);
if (excludeContent != null) {
String uniqueKey = buildUniqueIndexKey(excludeContent.getDatabase().getDbReference(), excludeContent.getDocumentKey());
wholeQuery.add(new TermQuery(new Term(INDEXFIELD_UNIQUEKEY, uniqueKey)), BooleanClause.Occur.MUST_NOT);
}
// list of dbs to search in
String searchScope = (String) parameters.get(LuceneManager.QUERYOPTION_SEARCHSCOPE);