Loading TOC...

SEARCH-NONANNOTATED

Message Text

Non-annotated query

Cause

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.

Response

Add annotations to any custom parsing code. Consult documentation on customization of the Search API, or use search:parse to generate parsed queries and observe the annotation pattern. Contact support if further assistance is needed.

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.