I'm looking for an example on how to do a Path Range Index Query using the MarkLogic Java API.
/doc1.xml
<a>
<b>
<c>1234</c>
<d>
<c>abcd</c>
</d>
</b>
</a>
/doc2.xml
<a>
<b>
<c>abcd</c>
<d>
<c>abcd</c>
</d>
</b>
</a>
A path range index was created having this path expression with no path namespace:
/a/b/c
Is this the proper way to invoke a path range index query using the MarkLogic Java API?
QueryManager queryMgr = client.newQueryManager();
StructuredQueryBuilder qb = new StructuredQueryBuilder(OPTIONS_NAME);
StructuredQueryDefinition querydef = qb.PathIndex("/a/b/c", "abcd")
SearchHandle results = queryMgr.search(querydef, new SearchHandle());