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")
            .setTypes("book")
            .setSearchType(SearchType.QUERY_AND_FETCH)
            .setQuery(????????????????????????)
            .setFrom(startFrom).setSize(10).setExplain(true)
            .execute()
            .actionGet();

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

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/1426702804.14201996%40f263.i.mail.ru.
For more options, visit https://groups.google.com/d/optout.

Reply via email to