Github user ottobackwards commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/2601#discussion_r182582965
  
    --- Diff: 
nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-processors/src/main/java/org/apache/nifi/processors/elasticsearch/QueryElasticsearchHttp.java
 ---
    @@ -352,6 +414,15 @@ private int getPage(final Response getResponse, final 
URL url, final ProcessCont
                 JsonNode responseJson = parseJsonResponse(new 
ByteArrayInputStream(bodyBytes));
                 JsonNode hits = responseJson.get("hits").get("hits");
     
    +            if ( (hits.size() == 0 && queryInfoRouteStrategy == 
QueryInfoRouteStrategy.NOHIT)
    --- End diff --
    
    OK, you can check my fix


---

Reply via email to