Class: ElasticGraph::SchemaDefinition::Indexing::FieldReference Private
- Inherits:
-
Object
- Object
- ElasticGraph::SchemaDefinition::Indexing::FieldReference
- Defined in:
- elasticgraph-schema_definition/lib/elastic_graph/schema_definition/indexing/field_reference.rb
Overview
Direct Known Subclasses
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).
26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'elasticgraph-schema_definition/lib/elastic_graph/schema_definition/indexing/field_reference.rb', line 26 def resolve return nil unless (resolved_type = type.fully_unwrapped.resolved) Indexing::Field.new( name: name, name_in_index: name_in_index, type: type, indexing_field_type: resolved_type.to_indexing_field_type, accuracy_confidence: accuracy_confidence, mapping_customizations: , source: source, runtime_field_script: runtime_field_script ) end |