anchela opened a new pull request, #2973: URL: https://github.com/apache/jackrabbit-oak/pull/2973
Allow user/group queries to force a specific index by exposing a new QueryBuilder#setIndexTag(String) method. When set, the generated XPath statement is augmented with an "option(index tag <tag>)" clause (see the Oak query-engine index-tag query option). - oak-jackrabbit-api: add default no-op setIndexTag(String) to the QueryBuilder interface so existing implementors remain source/binary compatible; bump the exported package version (minor) accordingly. - oak-core: XPathQueryBuilder stores the tag; UserQueryManager appends the option clause to the statement and validates the tag against [a-zA-Z0-9_]+ to prevent query injection. - Tests for the new builder accessor and for the generated statement (valid tag executes, invalid tag is rejected). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
