marklogic-community / Corona

Community REST API for MarkLogic
Other
37 stars 9 forks source link

RFE: An xpath-based search constraint #22

Open hunterhacker opened 12 years ago

hunterhacker commented 12 years ago

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?