[groonga-dev,00555] rroongaの演算子「!=」について

Back to archive index

hirano_verf****@mail***** hirano_verf****@mail*****
2011年 9月 2日 (金) 18:43:25 JST


お世話になっております。平野と申します。

rronngaを利用して以下のように検索をかけています。

    records = Groonga["user_table"].select do |record|
        record[:user_id] == 12345
    end

http://groonga.rubyforge.org/rroonga/ja/Groonga/Table.html#select-instance_method
を参照したのですが、「==」を「!=」に変更すると、

    NoMethodError (undefined method `build' for false:FalseClass)

とエラーになってしまいます。

正確な記述方法を教えていただけないでしょうか。

よろしくお願いいたします。




groonga-dev メーリングリストの案内
Back to archive index