Commit 6da28b85c35c670fe10230f610fc48c5e9fc7d36

Authored by Andrew Kane
1 parent dffeca3f

Added unsearchable option to the readme

Showing 1 changed file with 8 additions and 0 deletions   Show diff stats
@@ -897,6 +897,14 @@ class Product < ActiveRecord::Base @@ -897,6 +897,14 @@ class Product < ActiveRecord::Base
897 end 897 end
898 ``` 898 ```
899 899
  900 +Make fields unsearchable but include in the source [master]
  901 +
  902 +```ruby
  903 +class Product < ActiveRecord::Base
  904 + searchkick unsearchable: [:color]
  905 +end
  906 +```
  907 +
900 Reindex asynchronously 908 Reindex asynchronously
901 909
902 ```ruby 910 ```ruby