From 8aaaee4a128ea3efbae11e66f015bb4c4a41f864 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 14 Nov 2017 20:53:00 -0800 Subject: [PATCH] Document default_fields option [skip ci] --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+), 0 deletions(-) diff --git a/README.md b/README.md index df4d1a7..f9b1835 100644 --- a/README.md +++ b/README.md @@ -1650,6 +1650,14 @@ Eager load different associations by model Searchkick.search("*", index_name: [Product, Store], model_includes: {Product => [:store], Store => [:product]}) ``` +Specify default fields to search + +```ruby +class Product < ActiveRecord::Base + searchkick default_fields: [:name] +end +``` + Turn off special characters ```ruby -- libgit2 0.21.0