Object ultimateId = Neo4JTranslator.instance.toNeutralValue(getObjectId(n), att);
String luceneValue = LuceneTranslator.instance.fromNeutralValue(ultimateId, att);
Term term = new Term(att.name(), luceneValue);
TermQuery termQuery = new TermQuery(term);
if (relationshipQuery.clauses().size() >= BooleanQuery.getMaxClauseCount()) {
BooleanQuery.setMaxClauseCount(BooleanQuery.getMaxClauseCount() + 10);
}
relationshipQuery.add(termQuery, Occur.SHOULD);
}
boolQuery.add(relationshipQuery, Occur.MUST);