Concordance Search

End point: [RemoteTM URL]/memories
Send a POST request with these headers:
Header Value
Session  The ticket received from Authorization Request
Content-Type application/json
Include these parameters in a JSON body:
Parameter Value
command concordanceSearch
memory  ID of the memory to query
searchStr  Text to search
srcLang  Source language code
limit  Maximum number of matches to retrieve
isRegexp  Boolean value indicating whether the search string is a regular expression
caseSensitive  Boolean value indicating whether the search should be case sensitive
Example:
{
    "command": "concordanceSearch",
    "memory": "1619955225759",
    "searchStr": "source code",
    "isRegexp": false,
    "caseSensitive": false,
    "limit": 20,
    "srcLang": "en"
}
RemoteTM responds with a JSON object.
On success, field 'status' is set to 'OK' and search results are included in 'tus' field, escaped for JSON notation. Example:
{"tus":[
    "<tu creationtool=\"Swordfish\" tuid=\"1668707130-10-12-12\">
       <prop type=\"project\">swordfish.ditamap<\/prop>
       <tuv xml:lang=\"en\"><seg>Source Code<\/seg><\/tuv>
       <tuv xml:lang=\"es\"><seg>Código Fuente<\/seg><\/tuv>
     <\/tu>",
    "<tu creationtool=\"Swordfish\" tuid=\"467840381-10-12-12\">
       <prop type=\"customer\">Maxprograms<\/prop>
       <prop type=\"project\">swordfish.ditamap<\/prop>
       <tuv xml:lang=\"en\"><seg>Source Code<\/seg><\/tuv>
       <tuv xml:lang=\"pt\"><seg>Código fonte<\/seg><\/tuv>
     <\/tu>"],
    "status":"OK"
}
On error, field 'status' is set to 'Error' and field 'reason' contains the error cause. Example:
{
    "status": "Error",
    "reason": "Access denied"
}