search for: filteredquery

Displaying 1 result from an estimated 1 matches for "filteredquery".

2006 Dec 01
1
Effective search when knowing ID
Hi list, I''m new to ferret and I wonder what is the best way to search if I know one fields id and want to search on its content. I have experimented with FilteredQuery but I don''t know if this is the best way. Eg. index = Index::Index.new(:path => ''/tmp/all'') @dbh = Database.instance.connect result = @dbh.exec("SELECT pk_fulltext_id, fulltext_text FROM tbl_fulltext") result.each do |row| #Inserting the PK id and text...