Or you can use xdmp:document-properties() for your searchable expression (1st 
param to cts:search).

-Danny

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Justin Makeig
Sent: Monday, January 19, 2015 9:39 AM
To: neil bradley; MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Searching Standalone Properties Documents

Can you say a little more about what you're trying to accomplish? While it's 
possible to work with stand-alone properties (e.g. 
<http://docs.marklogic.com/cts:properties-query>), it's not a well trodden 
path. You'd be much better off if you can reformulate your implementation using 
tried and true document fragments.

Justin

> On Jan 19, 2015, at 9:28 AM, neil bradley <[email protected]> wrote:
> 
> Hi, I am having a problem working out how (if it is possible) to use 
> cts:search to find specific STANDALONE properties documents 
> (properties that are not associated with an actual document).
> 
> Every formulation of an XPath that I try either fails to find anything 
> that I know it should find, or says its "UNREACHABLE".
> 
> It does not surprise me that doc() does not work, because there IS no 
> document, and that collection() also does not work for a similar 
> reason.
> 
> I had hoped I could do something like:
> 
>  /property::*
> 
> But that is not working.
> 
> So, anyone know if its possible, and if so what kind of XPath I need?
> 
> Regards,
> 
> Neil.
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general

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

Reply via email to