400-Bad request

Hello @tarun-ghcp

Welcome to the Community!!

Could you please check once below line :

"must_not": [{"term": {"type.keyword": {"value": "Image"}}}]

I am not sure if we need to use value in the query as per the documentation

 "bool": {
            "must_not": [
              { "term": { "type.keyword": "Image" } }
            ]
          }

Thanks!!