class Redis::Search::Config
Attributes
complete_max_length[RW]
config for max length of content with Redis::Search.complete
method,default 100 Please change this with your real data length, short is fast For example: You use complete search for your User model name field, and the “name” as max length in 15 chars, then you can set here to 15 warring! The long content will can't be found, if the config length less than real content.
debug[RW]
Debug toggle, default false
pinyin_match[RW]
Pinyin search/index (true|false) - default = false If set this is true, the indexer will convert Chinese to Pinyin, and index them When you search “de” will -> 得|的|德… When you search “得” will -> “de” -> 得|的|德…
redis[RW]
Public Class Methods
new()
click to toggle source
# File lib/redis-search/config.rb, line 27 def initialize @debug = false @redis = nil @complete_max_length = 100 @pinyin_match = false end