For search query ,giving logs without searching the content using nesed query

  • Hello All,

  • I have nested Json which is 1000 lines, i am writing a nested match query to find matching content , but i am getting logs as :

  • `

    1. {searchType=QUERY_THEN_FETCH, indices=[jsonfile], indicesOptions=IndicesOptions[ignore_unavailable=false, allow_no_indices=true, expand_wildcards_open=true, expand_wildcards_closed=false, allow_aliases_to_multiple_indices=true, forbid_closed_indices=true, ignore_aliases=false, ignore_throttled=true], types=, routing='null', preference='null', requestCache=null, scroll=null, maxConcurrentShardRequests=0, batchedReduceSize=512, preFilterShardSize=128, allowPartialSearchResults=null, localClusterAlias=null, getOrCreateAbsoluteStartMillis=-1, source={}}
  • I am using nested query as :

  • SearchRequest request = Requests.searchRequest("jsonfile")

  •                 .source(SearchSourceBuilder.searchSource().query(QueryBuilders.boolQuery()
    
  •                         .should(QueryBuilders.matchQuery("name", "vinay"))
    
  •                         .should(QueryBuilders.matchQuery("location", "india"))
    
  •                         .should(QueryBuilders.matchQuery("address", "hyd"))
    
  •                         .minimumShouldMatch(1)));
    
  • for this query i am getting logs as

  • {searchType=QUERY_THEN_FETCH, indices=[jsonfile], indicesOptions=IndicesOptions[ignore_unavailable=false, allow_no_indices=true, expand_wildcards_open=true, expand_wildcards_closed=false, allow_aliases_to_multiple_indices=true, forbid_closed_indices=true, ignore_aliases=false, ignore_throttled=true], types=, routing='null', preference='null', requestCache=null, scroll=null, maxConcurrentShardRequests=0, batchedReduceSize=512, preFilterShardSize=128, allowPartialSearchResults=null, localClusterAlias=null, getOrCreateAbsoluteStartMillis=-1, source={"query":{"bool":{"should":[{"match":{"name":{"query":"vinay","operator":"OR","prefix_length":0,"max_expansions":50,"fuzzy_transpositions":true,"lenient":false,"zero_terms_query":"NONE","auto_generate_synonyms_phrase_query":true,"boost":1.0}}},{"match":{"location":{"query":"india","operator":"OR","prefix_length":0,"max_expansions":50,"fuzzy_transpositions":true,"lenient":false,"zero_terms_query":"NONE","auto_generate_synonyms_phrase_query":true,"boost":1.0}}},{"match":{"address":{"query":"hyd","operator":"OR","prefix_length":0,"max_expansions":50,"fuzzy_transpositions":true,"lenient":false,"zero_terms_query":"NONE","auto_generate_synonyms_phrase_query":true,"boost":1.0}}}],"adjust_pure_negative":true,"minimum_should_match":"1","boost":1.0}}}}

  • any suggestion.Preformatted text

  • `

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.