search for: content_query

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

2006 Dec 01
1
Effective search when knowing ID
....connect result = @dbh.exec("SELECT pk_fulltext_id, fulltext_text FROM tbl_fulltext") result.each do |row| #Inserting the PK id and text from DB index << {:pk_fulltext_id => row[''pk_fulltext_id''], :content => row [''fulltext_text'']} end content_query = Search::WildcardQuery.new(:content, "Text*") # I know the ID of the text to search in so I want to do it efficient id_filter = Search::QueryFilter.new(Search::TermQuery.new (''pk_fulltext_id'', ''1257667'')) query = Search::FilteredQuery.new(content_qu...