Guest User

Untitled

a guest
Apr 25th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. irb(main):001:0> require 'chef/search'
  2. => true
  3. irb(main):002:0> require 'chef/config'
  4. => true
  5. irb(main):003:0> foo = Chef::Search.new
  6. => #<Chef::Search:0x7fb616b783f0 @index=#<Ferret::Index::Index:0x7fb616b78350 @id_field=:id, @auto_flush=false, @mon_entering_queue=[], @key=nil, @mon_count=0, @dir=#<Ferret::Store::FSDirectory:0x7fb616b77ae0>, @default_input_field=:id, @mon_owner=nil, @reader=nil, @searcher=nil, @qp=nil, @close_dir=true, @default_field=:*, @mon_waiting_queue=[], @writer=nil, @open=true, @options={:lock_retry_time=>2, :dir=>#<Ferret::Store::FSDirectory:0x7fb616b77ae0>, :default_field=>:*, :analyzer=>#<Ferret::Analysis::StandardAnalyzer:0x7fb616b74700>, :path=>"/var/chef/search_index"}>>
  7. irb(main):004:0> foo.list_indexes
  8. => []
Add Comment
Please, Sign In to add comment