});
TermDocs termDocs = reader.termDocs(new Term(FieldNames.PROPERTIES_SET, refProperty));
String prefix = FieldNames.createNamedValue(refProperty, "");
while (termDocs.next()) {
int doc = termDocs.doc();
String[] values = reader.document(doc).getValues(FieldNames.PROPERTIES);
if (values == null) {
// no reference properties at all on this node
continue;