-
Notifications
You must be signed in to change notification settings - Fork 468
Closed
Description
Hi Pat,
I was wondering if it's possible to index a child model and if so, what configurations and "gotchas" should I look out for?
Example:
Class A < ActiveRecord::Base
end
Class B < A
self.table_name = "bs"
end
ThinkingSphinx::Index.define :b, with: :active_record, delta: ThinkingSphinx::Deltas::SidekiqDelta do
...
end
I'm attempting this but getting this message:
(notice both class tables are being referenced)
index a_core,a_delta,b_core,b_delta: query error: no field 'sphinx_internal_class_name' found in schema - SELECT * FROM `a_core`, `a_delta`, `b_core`, `b_delta` WHERE MATCH('@sphinx_internal_class_name (B)') AND `sphinx_deleted` = 0 ORDER BY `id` desc LIMIT 0, 10000 OPTION max_matches=10000; SHOW META
akostadinov
Metadata
Metadata
Assignees
Labels
No labels