Solr is an open source enterprise search platform from the Apache Lucene project.
Find tutorial how to import data from MySQL database to Solr:
Dynamic connection to MySQL database in Ruby on Rails (mysql2)
Installing mysql2 gem on Ruby 1.9.2 and Rails 3.0.5 on Windows
When running ‘rake db:create’, you may get the following error:
[codesyntax lang=”bash”]
>rake db:create
rake aborted!
126: The specified module could not be found. – d:/RailsInstaller/Ruby1.9.2/li
b/ruby/gems/1.9.1/gems/mysql2-0.3.11-x86-mingw32/lib/mysql2/1.9/mysql2.so
[/codesyntax]
or may get these errors while installing mysql:
[codesyntax lang=”bash”]
rake aborted !
uninitialized constant mysql2
[/codesyntax]
Error ‘uninitialized constant mysql2’ comes when mysql2 installation is not done properly.