Method: Elastictastic.persister

Defined in:
lib/elastictastic.rb

.persisterDiscretePersistenceStrategy, BulkPersistenceStrategy

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.

The current persistence strategy for ElasticSearch. Usually this will be the DiscretePersistenceStrategy singleton; inside a ::bulk block, it will be an instance of BulkPersistenceStrategy

Returns:

See Also:

  • bulk


105
106
107
108
# File 'lib/elastictastic.rb', line 105

def persister
  Thread.current['Elastictastic::persister'] ||=
    Elastictastic::DiscretePersistenceStrategy.instance
end