Is it possible to search on some fields with increased weights if a field name is present in search query?
For example if an index has the following fields:
PUT /my_index
{
"mappings": {
"_doc": {
"properties": {
"name": {
"type": "keyword"
},
"pistons": {
"type": "keyword"
},
"cylinders": { "type": "integer" }
}
}
}
}
and the search query is
10 cylinders
is there a way in Elasticsearch to focus this search to the "cylinders" field, since that field was mentioned on the query?
Or if the search is for
metal pistons
can we narrow this search to the pistons field, based on the contents of the search query?
Thanks in advance.