Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 08-09-2018 06:15 AM - edited 08-17-2019 07:54 PM
I'm trying to hit a get request on my elastic search index using JSONelastisearchprocessor in NIFI. Now, for each flow file i have some incoming attributes, based on that i need to generate different get request and store the response somewhere.
The list of processors i'm using is as below:
Request body
{
"query": {
"nested": {
"path": "los",
"query": {
"bool": {
"must": [
{ "match": { "los.${proc_ins_id}":"784525" }},
{ "match": { "los._source.cibilPermission.VALUE_":"1" }}
]
}
}
}
}
}
I can't see the request being genrated and not getting any response instead i'm only getting the value of proc_ins_id as reponse in putfile. Can someone suggest some appropriate way to do this?
Attaching relevant screenshots as well for reference.
Created on 08-09-2018 01:31 PM - edited 08-17-2019 07:54 PM
Please change EvaluateJsonPath processor configs Destination to flowfile-attribute
Now the processor will add the attribute to the flowfile then in JsonQueryElasticSearch processor will gets the attribute value and runs the query on ElasticSearch.
With Destination as flowfile-content will overwrites the existing flowfile content with PROC_INST_ID_ value.
JsonQueryElasticSearch Relationships:
Only feed the required relationships to PutFile processor i.e. hits (or) aggregations
Flow:
Created 08-09-2018 06:18 AM
Can you add something on it
Created on 08-09-2018 01:31 PM - edited 08-17-2019 07:54 PM
Please change EvaluateJsonPath processor configs Destination to flowfile-attribute
Now the processor will add the attribute to the flowfile then in JsonQueryElasticSearch processor will gets the attribute value and runs the query on ElasticSearch.
With Destination as flowfile-content will overwrites the existing flowfile content with PROC_INST_ID_ value.
JsonQueryElasticSearch Relationships:
Only feed the required relationships to PutFile processor i.e. hits (or) aggregations
Flow:
Created 08-09-2018 01:38 PM
Thanks @Shu