Some structure-driven constraints are easier/shorter to express in XPath than in the string and structured query syntax we support right now.
Perhaps we should let the user specify XPath expressions to limit documents, something like an xpathQuery parameter. For JSON documents we could use JSONPath.
We'd want the XPath to be fairly expressive (i.e. supporting complex predicates).
Open question: Do we only support searchable expression xpaths? Do we allow filtering?
Some structure-driven constraints are easier/shorter to express in XPath than in the string and structured query syntax we support right now.
Perhaps we should let the user specify XPath expressions to limit documents, something like an xpathQuery parameter. For JSON documents we could use JSONPath.
We'd want the XPath to be fairly expressive (i.e. supporting complex predicates).
Open question: Do we only support searchable expression xpaths? Do we allow filtering?