module ROM::Elasticsearch::Types

Elasticsearch types use by schema attributes

@api public

Constants

ID

Default integer primary key

Public Class Methods

Keyword(meta = {}) click to toggle source

Define a keyword attribute type

@return [Dry::Types::Type]

@api public

# File lib/rom/elasticsearch/types.rb, line 21
def self.Keyword(meta = {})
  String.meta(type: "keyword", **meta)
end
Text(meta = {}) click to toggle source

Define a keyword attribute type

@return [Dry::Types::Type]

@api public

# File lib/rom/elasticsearch/types.rb, line 30
def self.Text(meta = {})
  String.meta(type: "text", **meta)
end