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.
Indexes are required to support element, element-attribute, json-property, or field sort specifications.
A custom constraint expected to resolve facets (@facet = "true"
) must supply code to implement, at minimum, a finish-facet function. Optionally, it may supply a start-facet
function to support concurrent facet resolution. This error indicates that the finish-facet
function has not been supplied, or that the options node configuring the custom constraint is incorrect.
The Search API adds annotations as it parses queries in order to support round-tripping (search:parse
generates an annotated parsed query while search:unparse
takes an annotated parsed query and generates a string). The parse/unparse cycle is also used in other areas of the API, including search:remove-constraint
. This error indicates that the parsed query cannot be reversed due to missing annotations. It is usually encountered when custom parsing code has been added to extend the API.
Anchors indicating a fixed point in time may be supplied for computed buckets, which allow for dynamic calculation of relative bucket boundaries on date
or dateTime
constraints (e.g., compute bucket boundaries relative to "now"). This error indicates that the constraint type is inappropriate for the anchor.