Hi Folks,
 
We have an issue after version upgrade from 4.2-7 to 6.0 with word query 
configuration. There are multiple nodes excluded from word query using 
word-query excluded option. Looks like the new version introduced the 
capability to exlude element attribute value nodes.
 
The bellow query is throwing NOSUCHITEM exception (though the excluded element 
is present for database)  for all existing fields where as working fine with 
newly created excluded items after upgrade.
 
xquery version "1.0-ml";
  import module namespace admin = "http://marklogic.com/xdmp/admin"; 
    at "/MarkLogic/admin.xqy";
  
  let $config := admin:get-configuration()
  let $dbid := xdmp:database("database")
  let $wqspec := admin:database-excluded-element("", 
 "element-name")
  return
  admin:database-delete-word-query-excluded-element($config, $dbid, $wqspec)
 
Exception:
[1.0-ml] ADMIN-NOSUCHITEM: (err:FOER0000) Excluded Element does not exist: 
<excluded-element xmlns="http://marklogic.com/xdmp/database";> <namespace-uri/> 
<localname>company</localname> <attribute-namespace-uri/> 
<attribute-localname/> <attribute-value/> </excluded-element>
 
Please suggest
 
Thanks-Abhishek
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to