わかりましたので、検索する必要がある日付フィールドがありますが、mysql クエリのように日ごとに検索する必要があります
search_conditions << ["DAY(open_date) != ?", event.thursday.day] if options[:thur].blank?
この条件をThinking Sphinxで実行する必要があるので、これを試しました
attr_accessor :event_day
def event_day
self.start_date.day
end
#thinking sphinx configurations for the event search
define_index do
indexes event_day
...
...
そして検索で私はこれを試しました
search_string = "@event_day -#{event.thursday.day}" unless options[:thur].blank?
しかし、私はこのエラーが発生し続けます
index event_core: query error: no field 'event_day' found in schema
これを機能させる方法