Commit 56538d588317593920613b1f5fb72cf739df45ad
1 parent
76fc1dc3
Exists in
master
and in
21 other branches
Added debug option to readme
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
README.md
... | ... | @@ -930,6 +930,14 @@ Dog.search "airbudd", suggest: true # suggestions for all animals |
930 | 930 | |
931 | 931 | ## Debugging Queries |
932 | 932 | |
933 | +To help with debugging queries, you can use: | |
934 | + | |
935 | +```ruby | |
936 | +Product.search("soap", debug: true) | |
937 | +``` | |
938 | + | |
939 | +Info is printed to `stdout`. | |
940 | + | |
933 | 941 | See how Elasticsearch scores your queries with: |
934 | 942 | |
935 | 943 | ```ruby | ... | ... |