Answer the question
In order to leave comments, you need to log in
How to make a request to ElasticSearch?
There is an index, conditionally
{
"Name":"Масло машинное"
"attributes":{"Вязкость"=>"5w40","Для двигателей"=>"Дизель"}
"applicability":["BMW","AUDI","SEAT"]
}
"query_string"=>array (
"query"=>'Масло',
"default_operator"=>'or',
"allow_leading_wildcard"=>true,
"fields"=> array(
"Name^3",
)
),
"constant_score"=>array(
"filter"=>array(
"terms"=>array(
"applicability"=>array('BMW')
)
)
)
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