final ValueFactoryImpl valueFactory = new ValueFactoryImpl(new LocationFactory(nsReg));
BooleanQuery.setMaxClauseCount(Integer.MAX_VALUE);
BooleanQuery query = new BooleanQuery();
final String prefix = nsReg.getNamespacePrefixByURI(uri);
query.add(new WildcardQuery(new Term(FieldNames.LABEL, prefix + ":*")), Occur.SHOULD);
// name of the property
query.add(new WildcardQuery(new Term(FieldNames.PROPERTIES_SET, prefix + ":*")), Occur.SHOULD);
result = getNodes(query);
// value of the property
try
{
final Set<String> props = getFieldNames();
query = new BooleanQuery();
for (final String fieldName : props)
{
if (!FieldNames.PROPERTIES_SET.equals(fieldName))
{
query.add(new WildcardQuery(new Term(fieldName, "*" + prefix + ":*")), Occur.SHOULD);
}
}
}
catch (final IndexException e)
{