Sha256: 3adba2a4c2ebb1c67f7a772a3fd5c5cc0918318bac59268751923d644f7dceda
Contents?: true
Size: 579 Bytes
Versions: 2
Compression:
Stored size: 579 Bytes
Contents
multi_schema = MultiSchema.new ThinkingSphinx::Index.define :product, :with => :real_time do indexes name, :sortable => true has category_ids, :type => :integer, :multi => true end if multi_schema.active? multi_schema.create 'thinking_sphinx' ThinkingSphinx::Index.define(:product, :name => :product_two, :offset_as => :product_two, :with => :real_time ) do indexes name, prefixes: true set_property min_prefix_len: 1, dict: :keywords scope do multi_schema.switch :thinking_sphinx User end end multi_schema.switch :public end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thinking-sphinx-3.1.4 | spec/internal/app/indices/product_index.rb |
thinking-sphinx-3.1.3 | spec/internal/app/indices/product_index.rb |