Combining match query with "_all" and boosting at query time?

Hello Martijn,

On Thursday, October 18, 2012 3:27:25 PM UTC+2, Martijn v Groningen wrote:

Why not use the multi_match query? This allows you to use multiple
fields at same time with different boosts.
Example:
{
"multi_match" : {
"query" : "foo",
"fields" : ["title^1.5", "body^0.5"]
}
}

Thank you for your reply. I also thought about using a specific list of
fields. But this was only a simplified example. In reality i have several
fields which are not necessary known to me during query time. Thats why I
want to use the "_all" field, but still boost specific fields. E.g. search
for "foo" in "_all" fields, but boost hits, where it is found in the
attribute "title".

Any ideas?

Greetings from Berlin,
Alex

--