Using Search API, i have to join and search two XML documents in 2 different directories on a key element and sort the result based on a element in the 2nd XML.
I have defined the search options in XML with constraints on elements that I want to search and use sort operator options to define the sort order.
ML Version is 8 (so no Optic API) and don't have an option to denormalize the XML during ingestion as it is and existing system.
Sample file A
URI: /employee/123.xml
<employee>
<empid>123</empid>
<firstname>John</firstname>
<lastname>Peter</lastname>
<dept>sales</sales>
</employee>
Sample file B
URI: /contrib/123.xml
<contribution>
<empid>123</empid>
<count>2000</count>
<contribution>
search:search(searchgrmr,searchoptions,startidx,endidx);
I want to achieve something like what we achieve in the sql below
select * from a join b on a.col1 = b.col1 order by b.col2