How to write not equal to query in Marklogic?

yuna

New Member
I have the following xml structure:-\[code\]<patent-assignors> <patent-assignor> <name>VOLPENHEIN, ROBERT A.</name> <execution-date> <date>19841204</date> </execution-date> </patent-assignor> </patent-assignors> <patent-assignees> <patent-assignee> <name>PROCTER & GAMBLE COMPANY, THE</name> <address-2>A CORP. OF OHIO</address-2> <city>CINCINNATI</city> <state>OHIO</state> </patent-assignee> </patent-assignees>\[/code\]I want to return those records where Patent-Assignor name is not equal to Patent-Assignee name. But I don't want to use where clause as it slows down the query. I want to filter the results in the search itself. How can I do this ?
 
Back
Top