I was able to solve this problem because of your documentation. Thanks On Sat, Sep 5, 2015 at 9:41 PM, Pat Allan <[email protected]> wrote:
> Good to know you got it figured out. > > If you want it to be a boolean value (which makes sense in this case), you > can certainly set the type to :boolean. > > On 5 Sep 2015, at 4:27 am, Chaitali Khangar <[email protected]> > wrote: > > The issue is solved. > > > > On Saturday, September 5, 2015 at 4:24:22 PM UTC+5:30, Chaitali Khangar > wrote: >> >> I am beginner in real time indexing can you please help me? >> >> Instead of "has systolic_bp.nil?, :as => :systolic_bp_nil, :type => >> :boolean" >> > I have to crate one method systolic_bp_nil in model and have to write: > > has systolic_bp_nil, :type=>:integer > > I have one query whenever we write has is it necessary in real time that > type should be integer? > > > >> *In active record* I have written in this way and its working. >> *Reading* >> >> indexes user_id >> indexes blood_sugar_test_duration >> >> has date_of_reading >> has "systolic_bp IS NOT NULL",:as => :systolic_bp,:type=>:boolean >> >> *In real time * >> >> *Reading* >> >> indexes user_id >> indexes blood_sugar_test_duration >> has systolic_bp, :type=>:string >> has systolic_bp.nil?, :as => :systolic_bp_nil, :type => :boolean >> >> It is giving me error Unknown column systolic_bp >> > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/thinking-sphinx. > For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/thinking-sphinx. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/thinking-sphinx. For more options, visit https://groups.google.com/d/optout.
