# NOT RUN {
(x <- connect())
explain(x, index = "plos", type = "article", id = 14, q = "title:Germ")
body <- '{
"query": {
"term": { "title": "Germ" }
}
}'
explain(x, index = "plos", type = "article", id = 14, body=body)
# }
Run the code above in your browser using DataLab