Class: ElasticGraph::Indexer::IndexingPreparers::Untyped

Inherits:
Object
  • Object
show all
Defined in:
lib/elastic_graph/indexer/indexing_preparers/untyped.rb

Class Method Summary collapse

Class Method Details

.prepare_for_indexing(value) ⇒ Object

Converts the given untyped value to a String so it can be indexed in a ‘keyword` field.



16
17
18
# File 'lib/elastic_graph/indexer/indexing_preparers/untyped.rb', line 16

def self.prepare_for_indexing(value)
  Support::UntypedEncoder.encode(value)
end