lib/fts_lite/index.rb in fts_lite-0.1.0 vs lib/fts_lite/index.rb in fts_lite-0.1.1
- old
+ new
@@ -88,10 +88,10 @@
end
if (limit)
sql += sprintf(" LIMIT %d", limit)
end
sql += ";"
- @db.execute(sql, [@tokenizer.vector(text)]).flatten
+ @db.execute(sql, [@tokenizer.query(text)]).flatten
end
def count
@db.execute("SELECT COUNT(*) FROM #{@table_name} ;").first.first
end
def delete_all