I want to generate query for multiple boolean operation dynamically in elasticsearch with spring framework. my data in elasticsearch is like I want to execute query for this boolean operation ((n=xyz) && (s=abc)) Answer To be able to query Array inner object you should map your processedData as a Nested type, arrays of objects do not work as you would