Commit 9c571eaf50bc70256617481dd58c995eefd69891

Authored by Andrew
1 parent b8fc738d

Added model_options to readme [skip ci]

Showing 1 changed file with 8 additions and 0 deletions   Show diff stats
@@ -1739,6 +1739,14 @@ Add [request parameters](https://www.elastic.co/guide/en/elasticsearch/reference @@ -1739,6 +1739,14 @@ Add [request parameters](https://www.elastic.co/guide/en/elasticsearch/reference
1739 Product.search("carrots", request_params: {search_type: "dfs_query_then_fetch"}) 1739 Product.search("carrots", request_params: {search_type: "dfs_query_then_fetch"})
1740 ``` 1740 ```
1741 1741
  1742 +Set options across all models
  1743 +
  1744 +```ruby
  1745 +Searchkick.model_options = {
  1746 + batch_size: 200
  1747 +}
  1748 +```
  1749 +
1742 Reindex conditionally 1750 Reindex conditionally
1743 1751
1744 ```ruby 1752 ```ruby