Displaying 1 result from an estimated 1 matches for "fulltext_text".
2006 Dec 01
1
Effective search when knowing ID
...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 from DB
index << {:pk_fulltext_id => row[''pk_fulltext_id''], :content => row
[''fulltext_text'']}
end
content_query = Search::WildcardQuery.new(:content, "Text*")...