How do I add additional custom preference in the request body. #2004
Unanswered
kashaudhan
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@siddharthlatest could you please help me out. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm working on a reactive native app which requires the request body to like :
{"preference":"results"} {"query":{"bool":{"must":[{"bool":{"should":[{"geo_distance":{"distance":"2km","location":"10.057, 70.99"}}],"minimum_should_match":1}}]}},"size":10,"_source":{"includes":["*"],"excludes":[]},"from":0} {"preference":"googleMap"} {"query":{"bool":{"must":[{"bool":{"should":[{"geo_distance":{"distance":"2km","location":"13.0353557, 77.59878739999999"}}],"minimum_should_match":1}}]}},"size":10000,"from":0}
insted of:
{"preference":"results"} {"query":{"bool":{"must":[{"bool":{"should":[{"geo_distance":{"distance":"2km","location":"10.057, 70.99"}}],"minimum_should_match":1}}]}},"size":10,"_source":{"includes":["*"],"excludes":[]},"from":0}
I want the request body to have two preferences(one with
result
& other withgoogleMap
).I'm using
@appbaseio/[email protected]
to connect the search ui with the elastic search backend.Please help me out if you know the way to get is done.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions