Module: Neuromancer::Indexer
- Defined in:
- lib/neuromancer/indexer.rb,
lib/neuromancer/indexer/client.rb,
lib/neuromancer/indexer/version.rb,
lib/neuromancer/indexer/document.rb,
lib/neuromancer/indexer/configuration.rb
Defined Under Namespace
Classes: Client, Configuration, ConfigurationError, Document, Error, InvalidDocument
Constant Summary
collapse
- VERSION =
'0.4.4'
Class Method Summary
collapse
Class Method Details
.client ⇒ Object
46
47
48
|
# File 'lib/neuromancer/indexer.rb', line 46
def self.client
@client ||= Client.new
end
|
.config ⇒ Object
35
36
37
|
# File 'lib/neuromancer/indexer.rb', line 35
def self.config
@config ||= Configuration.new
end
|
39
40
41
42
43
44
|
# File 'lib/neuromancer/indexer.rb', line 39
def self.configure
yield config
config.validate!
config
end
|
.delete(obj) ⇒ Object
54
55
56
|
# File 'lib/neuromancer/indexer.rb', line 54
def self.delete(obj)
client.delete(obj)
end
|
.index(obj) ⇒ Object
50
51
52
|
# File 'lib/neuromancer/indexer.rb', line 50
def self.index(obj)
client.index(obj)
end
|