Hi Frank, The Search API uses annotations on the serialized version of the parsed query, so that the query can be unparsed. Unparsing is done in a number of places under the covers, so you do need to annotate the query to make everything work properly. The query you're constructing in your custom code is probably lacking these annotations.
One thing you can do is parse a few queries using search:parse, and take a look at the annotations that the built-in queries produce. That might give you enough hints to get going. You'll be looking for attributes like qtextpre and qtextref, and you should be able to pick up the pattern. Failing that, a little more information about what version you're running would be helpful, one of us can probably give you a more specific pointer into the code. --Colleen MarkLogic Corporation Phone +1 650 655 2366 email [email protected] web www.marklogic.com This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation. ________________________________________ From: [email protected] [[email protected]] On Behalf Of Frank Rubino [[email protected]] Sent: Tuesday, December 21, 2010 3:44 PM To: General Mark Logic Developer Discussion Subject: [MarkLogic Dev General] non annotated query? Hi- I have overcome my reference problem and my custom facets are working more or less. I see an error in my log though that I would like someone to help interpret: SEARCH-NONANNOTATED: (err:FOER0000) Non-annotated query At this point in the execution, I am deep inside search api. What makes it complain about non-annotated queries? Thanks, Frank This electronic message transmission contains information from the Company that may be proprietary, confidential and/or privileged. The information is intended only for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying or distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please immediately return it to the sender and delete it from your system. Thank you _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
