Sha256: d7bae6bd1d0cc943e06f9b14f16c7fca5f19bd4e41ab69a4043e64ba86417133

Contents?: true

Size: 387 Bytes

Versions: 1

Compression:

Stored size: 387 Bytes

Contents

Elasticsearch::Extensions::Documents.configure do |config|
  config.index_name = 'documents_test'
  config.settings   = {}
  config.mappings   = {}
  config.client.url = 'http://localhost:9200'
end

class TestDocumentsDocument < Elasticsearch::Extensions::Documents::Document
  indexes_as_type :documents_test

  def as_hash
    {
      a: object.a,
      b: object.b,
    }
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elasticsearch-documents-1.0.0 spec/test_env.rb