I have two types: books, compositions. Both of them have an author (string) field:
book.author and composition.author.
I would like to search in both of the two types at the same time, with multi_match query, like:
GET /my_index/book,composition/_search
"query": {
"multi_match" : {
"query" : "Beethoven",
"fields" : [ "author", "title" ]
}
}
But the book's author is more important for me, so I need to boost it. How could I boost 3x times higher the books.author than the composition.author?
Thanks!