RestHighLevel client filter with json payload

Hi i have requirement where i get request as json with multiple params and need to use that as filter for RestHighLevel client directly rather building the SearchQueryBuilder with BooleanQuery builder
My request json
"request" : {
"custId" : 115590,

You can't pass that directly. It's not a valid json and can not be used by elasticsearch search API AFAIK.

You probably need to parse it and compose a bool query with it.

Thank you for responding David, I already building the bool query.
Just want to know this way which reduces my efforts :slight_smile::grinning:

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