Multifield search using java api

I have three fields: authorId, title,content.

Could any one provide code how to make query that will find expression "english grammer" in title and content of the author with id=10?
Please, just a piece of code, as I've read MatchQuery, MultiMatch,BooleanQuery but can't understand how to do that.

SearchResponse response = client.prepareSearch("test")

Александр Свиридов

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit