Response
Check the function in your search options node, and ensure that the function named in the error message has been defined. You may need to specify a namespace (@ns) and file path (@at) if the function is an extension located in a custom XQuery module, or a user-defined function (@udf) if the function is a user-defined aggregate function.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.