I need to build a REST URI with multiple key-value search for MarkLogic server request. For Example, I have a XML document as below
<root>
<id>10</id>
<name>alex</name>
<reg-no>123-45</reg-no>
<city>New York</city>
<state>NY</state>
<occupation>student</occupation>
<subject>NoSql</subject>
</root>
I can use keyvalue search like http://localhost:8000/v1/keyvalue?element=name&value=alex for single key-value.
What if I also need search for element state = NY? How can I search for multiple key-values in single REST call? How MarkLogic achieve this, What did they use for advanced search? Is structured query only the option?
Thanks in advance,
Prithvi.
No comments:
Post a Comment