Forum: Ferret aaf: lazy=>true and using .highlight causes DB request?!?

F12532c1224ff2ab2260e853258deddb?d=identicon&s=25 neongrau __ (neongrau)
on 2009-12-21 12:53
i want to perform searches that don't hit the database and then
hightlight 1 or 2 fields from the store.

when i do
 Document.find_with_ferret(query, {:lazy=>true})

and then access
 hit.description
the content gets pulled from the index without any DB request.

but when i do
hit.highlight(query, {field => :description})

i see a request made to the DB
  Document Load (0.4ms)   SELECT * FROM `documents` WHERE
(`documents`.`id` = 5)


what can i do to prevent this DB hit ?
This topic is locked and can not be replied to.