Multi type & multi_match query - individual boosting


#1

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!


(Alexander Reelsen) #2

Check out the index boost query

--Alex


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.