I havent seen this in the docs, but maybe its self-obvious.

Suppose I have 2 kinds of XML documents.

<detail master_uri="/masters/12345.xml">
   <some detail>
</detail>

<master>
   <master stuff>
</master>


( Yes I know I should probably denormalize these but just suppose).

I'm wondering is the search:search constraint language powerful enough to 
handle a "join" of this sort ?
e.g suppose I wanted to search  details based on a combination of detail and 
master attributres (and return details).

An example xpath might be
     //detail[@attr eq 'value' and doc( @uri )//master[@attr2 eq 'value2'] ]

In search:search I may wish to express this as a constraint like

          detail:value master:value2  search-string


Is the constraint options powerful enough to do this ? And would it be 
efficient ? (i.e would joining to master make use of indexes ? )

I havent seen any examples of this sort.

Suggestions and/or pointers to docs/examples welcome .
Thank you

-David

----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
[email protected]<mailto:[email protected]>
812-482-5224

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

Reply via email to