Hi,

when using the Rest API and the search option <extract-document-data> I got the 
error

XDMP-AS: (err:XPTY0004) searchmodq:resolve($structured-query, $options, 
$params) -- Invalid coercion: (<search:response snippet-format="snippet" 
total="153" start="1" page-length="10" 
xmlns:search="http://marklogic.com/appservices/search";><search:result<http://marklogic.com/appservices/search%22%3E%3Csearch:result>
 index="1" uri="/programs/bef81c54-03ab-4bd8-b73c-...</search:response>, 
fn:doc("/programs/bef81c54-03ab-4bd8-b73c-16a2b6980455.xml"), 
fn:doc("/programs/763865fe-050c-4512-9ce6-b44ab8a8cd12.xml"), ...) as 
element(search:response) . See the MarkLogic server error log for further 
detail."

The search options are as following:
<search  xmlns="http://marklogic.com/appservices/search";>
<options>
  <constraint name="test">
    <value>
      <element ns="" name="componentUuid" />
    </value>
  </constraint>
<extract-document-data selected="all"/>
</options>
</search>

Using the XQuery console everything works fine.

Any idea?

Klaus Köhler

Software Architect
Klopotek & Partner GmbH
Schlüterstraße 39
10629 Berlin
Tel. + 49 30.884 53-204
Fax + 49 30.884 53-100
mailto:[email protected]
http://www.klopotek.de

Geschäftsführung:
Ulrich Klopotek von Glowczewski (Vorsitzender)
Stefan Jacob, Wolf-Michael Mehl
AG Charlottenburg HRB 45287

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind, informieren Sie bitte sofort den 
Absender und vernichten diese E-Mail. Das Kopieren oder die Weitergabe der 
E-Mail ist in diesem Fall nicht gestattet. Aufgrund der technischen 
Gegebenheiten im Internet ist nicht auszuschließen, dass diese Nachricht auf 
dem Weg zu Ihnen gelesen oder verfälscht worden ist. Fachliche Ausführungen in 
E-Mails und/oder Anlagen dazu haben grundsätzlich Entwurfscharakter und 
bedürfen unserer schriftlichen Bestätigung.

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient please notify the sender immediately and destroy 
this e-mail. In this case any copy, disclosure or distribution of the material 
in this e-mail is strictly forbidden. Due to the technical structures of the 
Internet, this message may have been scanned or faked on its way to you. 
Professional statements within an e-mail and/or attachments to an e-mail are to 
be regarded as drafts and require our written confirmation.

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

Reply via email to