3 ms·
I do not see how this applies. Below is an example of how you query the data. Map reduce not required [ {"query": { "_queryId":"office-query",
by dfragnito 12y ago
I do not see how this applies. Below is an example of how you query the data. Map reduce not required
[
{"query": {
"_queryId":"office-query",
"sfql": "SELECT $phone.oid, $s:phone.name, $s:phone.value WHERE $s:phone.name='office'"
}},
{"query": {
"_queryId":"mobile-query",
"sfql": "SELECT $phone.oid, $s:phone.name, $s:phone.value WHERE $s:phone.name='mobile'"
}}
]
- dfragnito 12y agoand example result is in json format. Note two queries in one request referenced by query ID. [ { "_queryId": "office-query", "cmdname": "query", "data": [ { "phone_oid": "3", "s:phone_name": "office", "s:phone_value": "111-112-1113" }, { "phone_oid": "7", "s:phone_name": "office", "s:phone_value": "111-112-1113" } ] }, { "_queryId": "mobile-query", "cmdname": "query", "data": [ { "phone_oid": "4", "s:phone_name": "mobile", "s:phone_value": "222:223:2224" }, { "phone_oid": "8", "s:phone_name": "mobile", "s:phone_value": "222:223:2224" } ] } ]