# File lib/fastri/full_text_index.rb, line 47
  def initialize(type, fulltext, sarray, options)
    options = DEFAULT_OPTIONS.merge(options)
    case type
    when :io
      @fulltext_IO = fulltext
      @sarray_IO   = sarray
    when :filenames
      @fulltext_fname = fulltext
      @sarray_fname   = sarray
    else raise "Unknown type"
    end
    @type = type
    @max_query_size = options[:max_query_size]
    check_magic
  end