I have a 'users' MySQL table. Users' names are stored in a separate 'names' table.
The index file looks like:
ThinkingSphinx::Index.define :user, :with => :active_record do
indexes names.text, :as => :name
end
The search works fine most the times, but some entries are just not in the results. Mr. "Thomas J Jefferson", for example, isn't returned when searching for "Thomas", or "J", or "Jefferson", or "Thomas J Jefferson". All his fellow presidents have a better treatment from the engine.
I just have no idea about what could be wrong.
Rails: 3.2.18, ruby: 1.9.3, ThinkingSphinx: 3.1.1
User.search 'Thomas J Jefferson', or something more complex than that? - patUser.search('Thomas J Jefferson', match_mode: :extended, per_page: 1000, retry_stale: true, populate: true)- Miotsu:match_modeis not required - TS v3 uses the SphinxQL protocol, which only uses the extended matching style - thus, you'll still get the matching you want, and the setting is ignored). - pat