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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
44602f8d44e07a7ab35fd625cfadc8ac?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
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.