Tree tree = root.getTree("/");
tree.addChild("somenode").setProperty("foo", "bar");
root.commit();
QueryIndex index = new SolrQueryIndex("solr", server, configuration);
FilterImpl filter = new FilterImpl(null, null);
filter.restrictPath("/somenode", Filter.PathRestriction.EXACT);
filter.restrictProperty("foo", Operator.EQUAL, PropertyValues.newString("bar"));
Cursor cursor = index.query(filter, store.getRoot());
assertNotNull(cursor);
assertTrue(cursor.hasNext());
assertEquals("/somenode", cursor.next().getPath());
assertFalse(cursor.hasNext());