Closed bilginnet closed 2 years ago
What is the plain query that you are trying to run? Have you tried to run it against elasticsearch using some gui tool? Looks like it's not the package issue, but wrong built query
My query should be like this:
where title LIKE "%$query%" and status="1"
I mean full plain query
select * from contents where title LIKE "%$query%" and status="1" i dont know how it can be if you asking about elasticsearch query..
Yes I'm asking about plain elasticsearch query
this is my code..
it is working when i run the first query only. But when i try to run with multiple query i got this error:
{"error":{"root_cause":[{"type":"parsing_exception","reason":"[match_phrase_prefix] malformed query, expected [END_OBJECT] but found [FIELD_NAME]","line":1,"col":64}],"type":"parsing_exception","reason":"[match_phrase_prefix] malformed query, expected [END_OBJECT] but found [FIELD_NAME]","line":1,"col":64},"status":400}