Module: ROM::Elasticsearch::Types
- Includes:
- Types
- Defined in:
- lib/rom/elasticsearch/types.rb
Overview
Elasticsearch types use by schema attributes
Constant Summary collapse
- ID =
Default integer primary key
Integer.(primary_key: true)
Class Method Summary collapse
-
.Keyword(meta = {}) ⇒ Dry::Types::Type
Define a keyword attribute type.
-
.Text(meta = {}) ⇒ Dry::Types::Type
Define a keyword attribute type.
Class Method Details
.Keyword(meta = {}) ⇒ Dry::Types::Type
Define a keyword attribute type
21 22 23 |
# File 'lib/rom/elasticsearch/types.rb', line 21 def self.Keyword( = {}) String.(type: "keyword", **) end |
.Text(meta = {}) ⇒ Dry::Types::Type
Define a keyword attribute type
30 31 32 |
# File 'lib/rom/elasticsearch/types.rb', line 30 def self.Text( = {}) String.(type: "text", **) end |