Sha256: 3ff246c4cccd546ee2034f1e5c3a88c1f226eb40fe757637bcac92069886be54
Contents?: true
Size: 714 Bytes
Versions: 72
Compression:
Stored size: 714 Bytes
Contents
module RocketCMS::ElasticSearch extend ActiveSupport::Concern included do include Mongoid::Elasticsearch elasticsearch!({ index_options: { settings: { index: { analysis: { analyzer: { my_analyzer: { type: "snowball", language: "Russian" } } } } } }, index_mapings: { name: {type: 'string', boost: 10, analyzer: 'my_analyzer'}, content: {type: 'string', boost: 1, analyzer: 'my_analyzer'}, } }) def es_index? enabled end def as_indexed_json {name: name, content: SmartExcerpt.strip_tags(content)} end end end
Version data entries
72 entries across 72 versions & 1 rubygems