From 9c571eaf50bc70256617481dd58c995eefd69891 Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 6 Aug 2018 22:07:20 -0700 Subject: [PATCH] Added model_options to readme [skip ci] --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index 716de87..5b2421a 100644 --- a/README.md +++ b/README.md @@ -1739,6 +1739,14 @@ Add [request parameters](https://www.elastic.co/guide/en/elasticsearch/reference Product.search("carrots", request_params: {search_type: "dfs_query_then_fetch"}) ``` +Set options across all models + +```ruby +Searchkick.model_options = { + batch_size: 200 +} +``` + Reindex conditionally ```ruby -- libgit2 0.21.0