Answer the question
In order to leave comments, you need to log in
How to prioritize the first occurrence in Elasticsearch?
There are two fields name and part type.
Now the search is set up like this:
"query" => [
"query_string" => [
"query" => "*{$value}*",
"analyze_wildcard" => true,
"default_operator" => "AND",
"fields" => [
"title",
"type",
]
]
],
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