Supports Oracle 10g, MySQL and SQLite3.
You’ll need Thinking Sphinx 1.3.8 or later.
gem install ts-xml
In your environment.rb
file, with the rest of your gem dependencies:
config.gem 'ts-xml', :lib => 'thinking_sphinx/xml'
And add the following lines to the bottom of your Rakefile
:
begin
require 'thinking_sphinx'
require 'thinking_sphinx/tasks'
require 'thinking_sphinx/xml'
require 'thinking_sphinx/xml/tasks'
rescue LoadError
puts 'Cannot load thinking sphinx tasks'
end
Just add those lines and it will use xmlpipe2 data source instead of SQL data source.
Oracle CLOB data types are not supported and indexed fields are trimmed to 4000 bytes.
Copyright © 2010 Edgars Beigarts, and released under an MIT Licence.