Sha256: da0f8c6c3a2e7d18bf3477bb6e8327a349fb9ff05f3d7ec25242d7759f0a750c
Contents?: true
Size: 967 Bytes
Versions: 27
Compression:
Stored size: 967 Bytes
Contents
module Enjoy::ElasticSearch extend ActiveSupport::Concern included do searchkick( language: "Russian", suggest: ["name"], settings: { analysis: { analyzer: { default_index: { type: "custom", tokenizer: "standard", filter: ["standard", "lowercase", "asciifolding", "searchkick_index_shingle", "searchkick_stemmer", "snowball"] # https://github.com/imotov/elasticsearch-analysis-morphology # filter: ["standard", "lowercase", "asciifolding", "searchkick_index_shingle", "searchkick_stemmer", "snowball", "russian_morphology", "english_morphology"] } } } } ) def search_data { _id: _id, name: name, content: SmartExcerpt.strip_tags(content), } end end end
Version data entries
27 entries across 27 versions & 1 rubygems