def writer(type)
      # We try to guess the writer name
      begin
        require File.dirname(__FILE__) + "/index_writers/#{type}_writer"
        @_writer = XapianDb::IndexWriters.const_get("#{camelize(type.to_s)}Writer")
      rescue LoadError
        puts "XapianDb: cannot load #{type} writer; see README for supported writers and how to install neccessary queue infrastructure"
        raise
      end
    end
def writer(type)
      # We try to guess the writer name
      begin
        require File.dirname(__FILE__) + "/index_writers/#{type}_writer"
        @_writer = XapianDb::IndexWriters.const_get("#{camelize(type.to_s)}Writer")
      rescue LoadError
        puts "XapianDb: cannot load #{type} writer; see README for supported writers and how to install neccessary queue infrastructure"
        raise
      end
    end
Set the index writer
 @param [Symbol] type The writer type; the following adapters are available:
   - :direct ({XapianDb::IndexWriters::DirectWriter})
   - :beanstalk ({XapianDb::IndexWriters::BeanstalkWriter})
   - :resque ({XapianDb::IndexWriters::ResqueWriter})
   - :sidekiq ({XapianDb::IndexWriters::SidekiqWriter})