I’m using the Java API (although I don't think it's relevant) to run searches against Marklogic and I’d like to pull back some information from the document and from the document’s properties in the results. I’m able to pull back data from the document itself by using the extract-document-data element of the options but I can’t seem to figure out how to also pull back properties.
I’ve tried a couple different things for what I specify in the extract-path element but I can’t get to the properties.
<options xmlns="http://marklogic.com/appservices/search">
<extract-document-data selected="include">
<extract-path>/some/path</extract-path><!--This works-->
<!--These Do Not -->
<extract-path>/property::propName</extract-path>
<extract-path xmlns:prop="http://marklogic.com/xdmp/property">/prop:properties/ propName </extract-path>
</extract-document-data>
<search-option>filtered</search-option>
</options>
How can I pull back information from the document properties while searching?