Spring StringQuery not working while actual query directly works on postman

I'm migrating our native to springboot+java and am stuck here with this search.
Didn't find much examples around web also.

{ "query": output in log below}

I'm getting output in postman. Yet the actual java code returns empty.

StringQuery query = new StringQuery(jsonInput);
log.info (query.getSource);
//prints this in log // 
   {

        "term": {
            "title": {
                "boost": 1.0,
                "value": "kat"
            }
        }
    
}

I've been trying out with simple queries to understand behaviour.
Updated actual post with recent simple query , please help!

  1. I think i should post this mostly in springdata group.
  2. Can someone help me find right logs to understand what query ES7.6.2 is receiving when actual search operation happens through postman and my code.
    I'm assuming a comparison should help me understand.

Guys, Forgive me for my bad programming habits.

return null;

I would blame myself for few sleepless nights. :sleepy:

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