I am new to MarkLogic, and I'm trying to extract information from documents using the search API. My documents are in the below format.
<nitf>
<head>
<title>ABC</title>
</head>
...
...
</nitf>
I would like to show only the titles of the documents that match the search query in the results, i.e. the search API must return only titles of matching documents. I have gone through the documentation and tried a different things such as query options which was suggested by @ehennum , but to no effect. Any help on this would be great. Thanks!