From 0c85e9123e39bf66af6d4930827fa06abc9d9d01 Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 30 Aug 2016 21:43:59 -0700 Subject: [PATCH] Added section on nested data --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 50137ea..02ee2f5 100644 --- a/README.md +++ b/README.md @@ -1133,7 +1133,7 @@ products = end ``` -### Multi Search +## Multi Search To batch search requests for performance, use: @@ -1147,7 +1147,7 @@ Then use `fresh_products` and `frozen_products` as typical results. **Note:** Errors are not raised as with single requests. Use the `error` method on each query to check for errors. Also, if you use the `below` option for misspellings, misspellings will be disabled. -### Multiple Indices +## Multiple Indices Search across multiple indices with: @@ -1161,6 +1161,14 @@ Boost specific indices with: indices_boost: {Category => 2, Product => 1} ``` +## Nested Data + +To query nested data, use dot notation. + +```ruby +User.search "*", where: {"address.zip_code" => 12345} +``` + ## Reference Reindex one record -- libgit2 0.21.0