I am using options file (loaded into modules DB using PUT /v1/config/query). Then I do a GET /v1/search with ?options=module-name&q=FullName:"John Smith". I am trying to pass FullName that is supplied as a parameter through REST API, to restrict the output content.
Below code in options file works fine,
<extract-document-data selected="include">
<extract-path>/envelope/instance/Contact/*[FullName="John Smith"]
</extract-path>
</extract-document-data>
How can I pass the value of FullName as a parameter with the value coming from REST API prameters instead of hard-coding? Something like,
<extract-document-data selected="include">
<extract-path>/envelope/instance/Contact/*[FullName=$FullName]
</extract-path>
</extract-document-data>
I tried above syntax but getting error while deployment(PUT /v1/config/query).
{"errorResponse": { "statusCode": 400, "status": "Bad Request", "messageCode": "RESTAPI-INVALIDCONTENT", "message": "RESTAPI-INVALIDCONTENT: (err:FOER0000) Invalid content: invalid paths to extract document data: /envelope/instance/Contact/*[FullName=$FullName]" }}