Hello all, as simpleSearch don''t support Chinese well, so I want to use lucene instead, so I need a way to integrate rails with java. I tried jruby, but when i run java -jar jruby.jar script/server it reports: script/server:3:in `require'': No such file to load -- webrick (LoadError) from script/server:3 I googled and found somebody says jruby lack some socket support so rails can''t run on it. so how is the way to integrate rails with java? (and also another question, how is ruby/rails unicode support?)
On Jul 17, 2005, at 10:41 PM, femtowin femtowin wrote:> Hello all, > as simpleSearch don''t support Chinese well, > so I want to use lucene instead, > so I need a way to integrate rails with java.A Ruby port is under way using the same technique behind PyLucene (SWIG bindings to GCJ-compiled Lucene.) See the mailing list achives at http://mail-archives.apache.org/mod_mbox/lucene-ruby-dev/ To subscribe, send an email to ruby-dev-subscribe-PPu3vs9EauNd/SJB6HiN2Ni2O/JbrIOy@public.gmane.org In the meantime, I suggest using some form of RPC to communicate with a Java search server, such as a REST web service, XML-RPC, etc. jeremy
If everything you want to search is in the database, you''re probably much better just using a custom SQL query. For instance MySQL and PostgreSQL have full text search. It''s pretty easy to do. If you''re using mysql, look at: http://dev.mysql.com/doc/mysql/en/fulltext-search.html .adam sanderson Hello all,> as simpleSearch don''t support Chinese well, > so I want to use lucene instead, > so I need a way to integrate rails with java. > I tried jruby, > but when i run java -jar jruby.jar script/server > it reports: > script/server:3:in `require'': No such file to load -- webrick (LoadError) > from script/server:3 > I googled and found somebody says jruby lack some socket support > so rails can''t run on it. > so how is the way to integrate rails with java? > (and also another question, how is ruby/rails unicode support?)_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails