I have a User Defined Function I’ve written for MarkLogic that I’d like to do work over three path range indexes. The first two indexes are on element values and the third is over a document property. The path range indexes are all defined and I can confirm that querying them separately returns data for the documents returned in the document query. However, when I pass them into my aggregate function, the tuple that gets passed to the map function is empty. Do UDFs just not work with path range indexes over properties?
cts:aggregate('plugins/ssplugin', 'my_plugin',
(cts:path-reference('/path-range-index-1'),
cts:path-reference('/path-range-index-2'),
cts:path-reference('/prop:properties/path-range-index-3')
), $args, (), cts:document-query(...))