Searching for blank attributes

0 views
Skip to first unread message

PsiPro

unread,
Dec 26, 2009, 4:20:56 PM12/26/09
to Thinking Sphinx
Hello,

I have a model that is indexed on an attribute, is_actually_id, and in
a search I want to search and return only items where is_actually_id
is blank.

Is this possible with thinking sphinx/sphinx?

Thanks.

James Healy

unread,
Dec 26, 2009, 7:16:15 PM12/26/09
to thinkin...@googlegroups.com

NULL attributes are stored as 0, so try:

Model.search(:with => {:is_actually_id => 0})

-- James Healy <ji...@deefa.com> Sun, 27 Dec 2009 11:16:00 +1100

Reply all
Reply to author
Forward
0 new messages