From 56538d588317593920613b1f5fb72cf739df45ad Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Thu, 15 Dec 2016 23:07:48 -0800 Subject: [PATCH] Added debug option to readme --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index 5ca882b..971b1f8 100644 --- a/README.md +++ b/README.md @@ -930,6 +930,14 @@ Dog.search "airbudd", suggest: true # suggestions for all animals ## Debugging Queries +To help with debugging queries, you can use: + +```ruby +Product.search("soap", debug: true) +``` + +Info is printed to `stdout`. + See how Elasticsearch scores your queries with: ```ruby -- libgit2 0.21.0