hi!
short question about aaf:
is there a builtin functionality in acts_as_ferret to exclude records
from being indexed when for example a column “is_deleted” /
“is_disabled” / “dont_index” has a certain value?
regards
neongrau
hi!
short question about aaf:
is there a builtin functionality in acts_as_ferret to exclude records
from being indexed when for example a column “is_deleted” /
“is_disabled” / “dont_index” has a certain value?
regards
neongrau
On Tue, Mar 06, 2007 at 11:46:26AM +0100, neongrau __ wrote:
hi!
short question about aaf:
is there a builtin functionality in acts_as_ferret to exclude records
from being indexed when for example a column “is_deleted” /
“is_disabled” / “dont_index” has a certain value?
just override the ferret_enabled? instance method.
cheers,
Jens
–
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[email protected] | www.webit.de
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
Jens K. wrote:
s_disabled" / “dont_index” has a certain value?
just override the ferret_enabled? instance method.
hallo jens!
so i just put s.th. like this into my model?
def ferret_enabled?
self.is_deleted ? false : true
end
and aaf will skip the record when indexing?
On Tue, Mar 06, 2007 at 02:18:34PM +0100, neongrau __ wrote:
def ferret_enabled?
self.is_deleted ? false : true
endand aaf will skip the record when indexing?
that’s right.
However this does not apply to index rebuilds, please see my other
recent mail to the list for a solution to this problem.
Jens
–
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[email protected] | www.webit.de
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs