Method: ODBA::FulltextIndex#fetch_ids

Defined in:
lib/odba/index.rb

#fetch_ids(search_term, meta = nil) ⇒ Object

:nodoc:



381
382
383
384
385
386
# File 'lib/odba/index.rb', line 381

def fetch_ids(search_term, meta=nil)  # :nodoc:
    limit = meta.respond_to?(:limit) && meta.limit
	rows = ODBA.storage.retrieve_from_fulltext_index(@index_name, search_term, limit)
	set_relevance(meta, rows)
	rows.collect { |row| row.at(0) }
end