I am writing this
Network.search :conditions=>{:kind=>'Interest'}
and I am getting this error
Sphinx Sphinx Daemon returned error: index network_core: query error: no field 'kind' found in schema
My Code in model is
define_index do
indexes [name, description], as: :keyword
has kind, state
end
I have already run rake ts:index and rake ts:start
Your index should be looking like this:
After this run
bundle exec rake ts:rebuild