Djaun,

There are several ways, and which you choose will depend a lot on the diversity 
and organizational structure of your database.

If you assign collections, or assign document uris so that you can leverage 
directory queries, you can use the <additional-query> element to narrow your 
search by collection or directory.

Or you have very homogeneous content, you could use the <searchable-expression> 
element to narrow the documents that the search runs over.  (e.g. if you want 
to search over <book> root elements, you can use 
<searchable-expression>/book</searchable-expression> to do that, thereby 
filtering out the xhtml documents.

--Colleen


________________________________________
From: [email protected] 
[[email protected]] On Behalf Of DJaun Maclin 
[[email protected]]
Sent: Thursday, July 12, 2012 12:10 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] exclude xhtml documents in results of  
search:search

Hi everyone,

Is it possible to exclude xhtml documents from the search:search results? I 
would love to only have .xml results returned back to me…Does anyone have any 
clue how to do this if possible?
Thanks

Dj

Djaun Maclin
Product Manager
WATT Knowledge • Solutions • Success
Office: 815-966-5539
Mobile: 815-608-7653
Email: [email protected]<mailto:[email protected]>
Web: www.wattnet.com<http://www.wattnet.com>

This e-mail and any attachment may contain confidential and privileged material 
intended for the addressee only. If you are not the addressee, you are notified 
that no part of the e-mail or any attachment may be disclosed, copied or 
distributed, and that any other action related to this e-mail or attachment is 
strictly prohibited, and may be unlawful. If you have received this e-mail by 
error, please notify the sender immediately by return e-mail, and delete this 
message. WATT Publishing Co. and/or its employees shall not be liable for the 
incorrect or incomplete transmission of this e-mail or any attachments, nor 
responsible for any delay in receipt.

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

Reply via email to