文書の文書プロパティを検索したい。私はMarklogicにロードされたドキュメントのみを持ち、xmlファイルはありません。私はコンテンツ処理を無効にしました。今、私はドキュメントのプロパティを検索するには?
(xdmp:document-properties(uri)
に存在する)のメタデータを検索したい私は、ドキュメント内の次のプロパティがあります。 -
<?xml version="1.0" encoding="UTF-8"?>
<prop:properties xmlns:prop="http://marklogic.com/xdmp/property">
<uploaded>true</uploaded>
<OntologyResourceTypeValue>DOCUMENT</OntologyResourceTypeValue>
<content-type>application/pdf</content-type>
<filter-capabilities>text subfiles HD-HTML</filter-capabilities>
<CreationDate>2002/12/05 09:44:29Z</CreationDate>
<ModDate>2002/12/05 12:02:27+02'00'</ModDate>
<Producer>Acrobat Distiller 5.0 (Windows)</Producer>
<Author>Administrator</Author>
<Creator>PScript5.dll Version 5.2</Creator>
</prop:properties>
は今、私は著者だけでなく、他のプロパティを検索したいです。 search:search("Administrator")
を使用している場合は、ドキュメント全体でこの単語を探しています。しかし、私は、文書のプロパティでAuthorタグだけを検索したい。同様に私は他のプロパティでも検索したいと思う。
私もこの試みている: -
let $options := <options xmlns="http://marklogic.com/appservices/search">
<constraint name="author">
<properties name="prop:Author"/>
</constraint>
</options>
let $results := search:search("author:Administrator", $options, 1, 10)
return
$results
しかし、これは動作しません。助けてください。