How are ruby nil values represented in the index? Thanks, John
On Thu, Mar 29, 2007 at 06:34:15PM -0400, John Bachir wrote:> How are ruby nil values represented in the index?not at all, I guess. Ferret works on strings, and it makes no sense to store an empty string in the index. 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 kraemer at webit.de | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold, Hagen Malessa
John Joseph Bachir
2007-Mar-31 05:20 UTC
[Ferret-talk] nil''s representation in the index?
On Mar 30, 2007, at 3:33 AM, Jens Kraemer wrote:> On Thu, Mar 29, 2007 at 06:34:15PM -0400, John Bachir wrote: >> How are ruby nil values represented in the index? > > not at all, I guess. Ferret works on strings, and it makes no sense to > store an empty string in the index.I am trying to query for objects that match certain terms in field A, and field B = nil in the model. (The column is untokenized) John
On Sat, Mar 31, 2007 at 01:20:50AM -0400, John Joseph Bachir wrote:> > On Mar 30, 2007, at 3:33 AM, Jens Kraemer wrote: > > > On Thu, Mar 29, 2007 at 06:34:15PM -0400, John Bachir wrote: > >> How are ruby nil values represented in the index? > > > > not at all, I guess. Ferret works on strings, and it makes no sense to > > store an empty string in the index. > > > I am trying to query for objects that match certain terms in field A, > and field B = nil in the model. (The column is untokenized)I think the only way to achieve this is to epresent the nil with some non-nil value in the index (''NIL'' or something like this) so you can search for it. 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 kraemer at webit.de | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold, Hagen Malessa
John Joseph Bachir
2007-Mar-31 15:53 UTC
[Ferret-talk] nil''s representation in the index?
On Mar 31, 2007, at 5:30 AM, Jens Kraemer wrote:>> I am trying to query for objects that match certain terms in field A, >> and field B = nil in the model. (The column is untokenized) > > I think the only way to achieve this is to epresent the nil with some > non-nil value in the index (''NIL'' or something like this) so you can > search for it.That''s precisely what I ended up doing. :) Thanks.