def index_add(record)
      return if self.aai_config.disable_auto_indexing

      build_index
      index = new_index
      index.add_record(record)
      @query_cache = {}
    end
def index_add(record)
      return if self.aai_config.disable_auto_indexing

      build_index
      index = new_index
      index.add_record(record)
      @query_cache = {}
    end
Adds the passed +record+ to the index. Index is built if it does not already exist. Clears the query cache.