Answer the question
In order to leave comments, you need to log in
Search across multiple fields?
Hi friends!
Help the teapot. There is a search form for ads, it contains the parameters "object price", "available for resale" (checkbox), and so on. in general, the usual form of advanced search with 20 fields.
I want to display a counter under the form so that it shows how many ads were found (even before pressing the "find" button.
I don't understand how to search in the eraser for several fields at once.
$params = [
'index' => 'ads',
'default_operator' => 'AND',
'body' => [
'query' => [
'terms' => [
'visible' => '1',
'price' => 555,
]
]
]
];
[terms] query does not support [price]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question