Class: ElasticGraph::SchemaDefinition::Indexing::FieldReference Private
- Inherits:
-
Data
- Object
- Data
- ElasticGraph::SchemaDefinition::Indexing::FieldReference
- Defined in:
- elasticgraph-schema_definition/lib/elastic_graph/schema_definition/indexing/field_reference.rb,
elasticgraph-schema_definition/lib/elastic_graph/schema_definition/indexing/field_reference.rb
Overview
Instance Method Summary collapse
-
#resolve ⇒ Field?
private
The Field this reference resolves to (if it can be resolved).
Instance Method Details
#resolve ⇒ Field?
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns the ElasticGraph::SchemaDefinition::Indexing::Field this reference resolves to (if it can be resolved).
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'elasticgraph-schema_definition/lib/elastic_graph/schema_definition/indexing/field_reference.rb', line 30 def resolve return nil unless (resolved_type = type.fully_unwrapped.resolved) Indexing::Field.new( name: name, name_in_index: name_in_index, type: type, json_schema_layers: type.json_schema_layers, indexing_field_type: resolved_type.to_indexing_field_type, accuracy_confidence: accuracy_confidence, json_schema_customizations: , mapping_customizations: , source: source, runtime_field_script: runtime_field_script ) end |