<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: QueryElasticSearchHTTP does not return anything when a record is not found! in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/QueryElasticSearchHTTP-does-not-return-anything-when-a/m-p/344104#M234086</link>
    <description>&lt;P&gt;I believe MergeContent&amp;nbsp;Merging Strategy is set to&amp;nbsp;Defragment ? If it is set to&amp;nbsp;&lt;SPAN&gt;Defragment then&amp;nbsp;MergeContent will wait to receive all flow file part of&amp;nbsp;fragment.count. so what happened to the remaining 2 flow files? which r&lt;/SPAN&gt;elationships they move? failure?&amp;nbsp; and terminated on Processor itself assuming as per screenshot . If you wish to merge with reamaning 8 then&amp;nbsp;Merging Strategy needs to be changed but that could be lead to case where all 8 records can not be merged together all the time since there is no correlation, or if you just want to merge all records irrespective of failure or success , then you need to have failure or success both relationships configured for&amp;nbsp;MergeContent .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Was your question answered? Please take some time to click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;BR /&gt;If you find a reply useful, say thanks by clicking on the thumbs up button.&lt;/I&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 May 2022 12:18:09 GMT</pubDate>
    <dc:creator>ckumar</dc:creator>
    <dc:date>2022-05-19T12:18:09Z</dc:date>
    <item>
      <title>QueryElasticSearchHTTP does not return anything when a record is not found!</title>
      <link>https://community.cloudera.com/t5/Support-Questions/QueryElasticSearchHTTP-does-not-return-anything-when-a/m-p/343965#M234061</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping I can get some help with this. I have a process that's sending a set of JSON records to a NiFi flow. Each JSON record in the array is a set of criteria/conditions for which I run QueryElasticSearchHTTP to get matching records from ElasticSearch. I am using a Merge Content processor at the end to merge all of this data and send back the JSON array as response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works fine when for example I send 10 JSON criteria records in the array and QueryElasticSearchHTTP is able to find a document in the index for each criteria it receives. It bundles up the 10 resultant records from Elastic and sends the response through. However, if QueryElasticSearchHTTP finds only 8 records matching the criteria, it then waits forever at the Merge Content processor. I realise this is because it has received 10 records initially and split them into 10 flow files. When it looks to merge, it finds only 8 flow files and is waiting for the remaining 2 which never come through. This blocks up the entire flow and nothing works from here on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RB764_0-1652857503514.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34407i58D31D2FCD6F071A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RB764_0-1652857503514.png" alt="RB764_0-1652857503514.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please see picture above. Can anyone help me with a solution to this, please? Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 07:06:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/QueryElasticSearchHTTP-does-not-return-anything-when-a/m-p/343965#M234061</guid>
      <dc:creator>RB764</dc:creator>
      <dc:date>2022-05-18T07:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: QueryElasticSearchHTTP does not return anything when a record is not found!</title>
      <link>https://community.cloudera.com/t5/Support-Questions/QueryElasticSearchHTTP-does-not-return-anything-when-a/m-p/344104#M234086</link>
      <description>&lt;P&gt;I believe MergeContent&amp;nbsp;Merging Strategy is set to&amp;nbsp;Defragment ? If it is set to&amp;nbsp;&lt;SPAN&gt;Defragment then&amp;nbsp;MergeContent will wait to receive all flow file part of&amp;nbsp;fragment.count. so what happened to the remaining 2 flow files? which r&lt;/SPAN&gt;elationships they move? failure?&amp;nbsp; and terminated on Processor itself assuming as per screenshot . If you wish to merge with reamaning 8 then&amp;nbsp;Merging Strategy needs to be changed but that could be lead to case where all 8 records can not be merged together all the time since there is no correlation, or if you just want to merge all records irrespective of failure or success , then you need to have failure or success both relationships configured for&amp;nbsp;MergeContent .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Was your question answered? Please take some time to click on "&lt;STRONG&gt;Accept as Solution&lt;/STRONG&gt;" below this post.&lt;BR /&gt;If you find a reply useful, say thanks by clicking on the thumbs up button.&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 12:18:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/QueryElasticSearchHTTP-does-not-return-anything-when-a/m-p/344104#M234086</guid>
      <dc:creator>ckumar</dc:creator>
      <dc:date>2022-05-19T12:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: QueryElasticSearchHTTP does not return anything when a record is not found!</title>
      <link>https://community.cloudera.com/t5/Support-Questions/QueryElasticSearchHTTP-does-not-return-anything-when-a/m-p/344267#M234129</link>
      <description>&lt;P&gt;Thanks for taking the time to respond &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/42173"&gt;@ckumar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Merge strategy is set to Defragment and yes it seems to be waiting for the remaining 2 files which never arrive. I have noticed that if a record isn't found in the Elastic index, QueryElasticSearchHTTP processor does not return a failure and so there is nothing returned through any relationship for the missing 2 records. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 20:20:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/QueryElasticSearchHTTP-does-not-return-anything-when-a/m-p/344267#M234129</guid>
      <dc:creator>RB764</dc:creator>
      <dc:date>2022-05-20T20:20:55Z</dc:date>
    </item>
  </channel>
</rss>

