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

    https://github.com/apache/nifi/pull/2601#discussion_r182499545
  
    --- 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 --
    
    So, you are saying that, if you set it to NO_HITS and you get all 20 at a 
time, you get a query info on the last try?


---

Reply via email to