[MarkLogic Dev General] non annotated query?
Colleen.Whitney at marklogic.com
Tue Dec 21 16:04:03 PST 2010
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.
Phone +1 650 655 2366
email colleen.whitney at 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: general-bounces at developer.marklogic.com [general-bounces at developer.marklogic.com] On Behalf Of Frank Rubino [frubino at spectrumchemical.com]
Sent: Tuesday, December 21, 2010 3:44 PM
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] non annotated query?
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?
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
General at developer.marklogic.com
More information about the General