Sha256: 1cefcc1af921355e3917a2b62bd50032f94ea195aa9855502cca829c285dd3ff

Contents?: true

Size: 295 Bytes

Versions: 6

Compression:

Stored size: 295 Bytes

Contents

class UserIndex < SearchIndex
  def initialize
    super('users')
  end

  def create
    super(
        mappings: {
          type => {
            # Your mappings here
          }
        }
    )
  end

  def store(instance)
    index_data = instance.attributes
    super(index_data)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
grape-gen-0.0.6 template/search_indexes/user_index.rb
grape-gen-0.0.5 template/search_indexes/user_index.rb
grape-gen-0.0.4 template/search_indexes/user_index.rb
grape-gen-0.0.3 template/search_indexes/user_index.rb
grape-gen-0.0.2 template/search_indexes/user_index.rb
grape-gen-0.0.1 template/search_indexes/user_index.rb