Marklogic ML Gradle部署带有注释问题的搜索选项

Marklogic ML Gradle部署带有注释问题的搜索选项,marklogic,marklogic-9,Marklogic,Marklogic 9,我试图用注释部署我的搜索选项,它给了我以下错误 Error caught while loading modules, cause: Local message: /config/query write failed: Bad Request. Server Message: RESTAPI-INVALIDCONTENT: (err:FOER0000) Invalid content: Operation results in invalid Options: XDMP-VALIDATENODE

我试图用注释部署我的搜索选项,它给了我以下错误

Error caught while loading modules, cause: Local message: /config/query write failed: Bad Request. Server Message: RESTAPI-INVALIDCONTENT: (err:FOER0000) Invalid content: Operation results in invalid Options: XDMP-VALIDATENODECL: (err:XQDY0084) validate strict { $annotations } -- Missing element declaration: Expected declaration for node fn:doc("")/search:options/search:constraint[2]/search:custom/search:annotation/search:assays in non-lax mode using schema "search.xsd"fn:doc("")/search:options/search:constraint[2]/search:custom/search:annotation/search:assays"search.xsd"
com.marklogic.client.FailedRequestException: Local message: /config/query write failed: Bad Request. Server Message: RESTAPI-INVALIDCONTENT: (err:FOER0000) Invalid content: Operation results in invalid Options: XDMP-VALIDATENODECL: (err:XQDY0084) validate strict { $annotations } -- Missing element declaration: Expected declaration for node fn:doc("")/search:options/search:constraint[2]/search:custom/search:annotation/search:assays in non-lax mode using schema "search.xsd"fn:doc("")/search:options/search:constraint[2]/search:custom/search:annotation/search:assays"search.xsd"

但同样的选项在查询控制台中也可以正常工作。。当我查找
search.xsd
时,我不知道;我看不出有什么不同。。我做错了什么? 下面是我的选项文件


http://rdf.abbvienet.com/entity/abbvie/biologic
频率顺序
下降的
同时发生的
流式细胞术| FAC |流式细胞术
免疫组织化学| IHC
westernblot | Western
酶联免疫吸附
结合试验|双核
不区分大小写
标点不敏感
不区分空格
通配符
//ab:id
//ab:姓名
//ab:备用名称
//ab:实体类型
//ab:实体子类型
//ab:科学家
//ab:注册主任
//ab:项目
//ab:同型
//ab:物种
//ab:评论

当我从第二个约束中删除
标记时,将部署选项文件。当我看
search.xsd
时,我不知道;我看不出我的
元素有任何错误。

奇怪的是,错误消息指的是搜索:注释/搜索:区域,但选项没有显示该元素

在注释元素上声明空的默认命名空间可能会有所帮助,如中所示:

<annotation xmlns="">


这样,注释子元素将不在搜索命名空间中,因此永远不应该根据搜索架构进行验证。

它仍然会给我错误“Local message:/config/query write failed:Bad Request”。服务器消息:RESTAPI-INVALIDCONTENT:(err:FOER0000)无效内容:操作导致无效选项:XDMP-VALIDATEUNEXPECTED:(err:XQDY0027)validate strict{$opt}--无效节点:在fn:doc(“”)/搜索:选项/搜索:约束[2]/搜索:自定义/注释/使用架构的分析“/annotations.xsd”处找到分析,但应为(位置*,信息*)分析(位置*,信息*)fn:doc(“”)/search:options/search:constraint[2]/search:custom/annotation/analysis”/annotations.xsd`当我查看
search.xsd
时,它确实有
注释
元素。我认为,当我在您的建议中为xmlns添加前缀时,它起了作用。.不是对注释,而是对其下方的元素