Mattenoble.com - Comments Writings and thoughts on Ruby, Rails and general Web Development. http://www.mattenoble.com "Guide To Rails Full Text Search With Xapian On A Shared Hosting Plan" by Matte Eyal: Sorry for the long* delay. I hope you've figured it out by now, because quite frankly, I'm not sure. I'm not much of a sys admin, I just got lucky with everything compiling cleanly. <br/><br/> Dale: I actually use (ActsAs)Xapian to index articles on here. As far as it being threadsafe, no. The Xapian library itself is not threadsafe, so pretty much anything you do with it will not be either. <br/><br/> * s/long/super-long/i Wed, 22 Jul 2009 01:40:37 +0000 http://blog.mattenoble.com/articles/guide-to-rails-full-text-search-with-xapian-on-a-shared-hosting-plan "Guide To Rails Full Text Search With Xapian On A Shared Hosting Plan" by Dale Cook We just implemented acts_as_xapian in <a href="http://www.glunote.com">glunote</a> and over all the experience was pretty painless. Have not tried Sphinx before, but have used Ferret with pretty mixed results. We though about using an after_filter solution too, but instead we used a backgroundRB process instead since we were already using one to run another task at 1 minute intervals. I guess our primary concerns were that this runs the update every time, and if there was a lot of traffic this might not be good since the index updates can take a long time (probably because they go through AR). Also, there were some concerns about the update being thread safe. Have you tried this in production? Thu, 16 Jul 2009 23:59:25 +0000 http://blog.mattenoble.com/articles/guide-to-rails-full-text-search-with-xapian-on-a-shared-hosting-plan "Guide To Rails Full Text Search With Xapian On A Shared Hosting Plan" by SZH Great article! Currently I have a cron job that updates the index every hour, but using an after_filter instead is obviously a much better solution. Thanks! :-) Sun, 17 May 2009 15:51:53 +0000 http://blog.mattenoble.com/articles/guide-to-rails-full-text-search-with-xapian-on-a-shared-hosting-plan "Guide To Rails Full Text Search With Xapian On A Shared Hosting Plan" by Eyal Hi. Thanks for the very informative article. I'm getting the following error in in the 'make' command: g++ -Wall -W -Wredundant-decls -Wpointer-arith -Wcast-qual -Wcast-align -Wno-long-long -Wformat-security -fno-gnu-keywords -Wundef -Wshadow -g -O2 -o bin/.libs/quartzcheck bin/bin_quartzcheck-quartzcheck.o ./.libs/libquartzcheck.a ./.libs/libxapian.so -lz -Wl,--rpath -Wl,/home/6186/users/.home/opt/lib /usr/lib/libc_nonshared.a(elf-init.oS)(.text.__i686.get_pc_thunk.bx+0x0): In function `__i686.get_pc_thunk.bx': : multiple definition of `__i686.get_pc_thunk.bx' ./.libs/libquartzcheck.a(btreecheck.o)(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0):backends/quartz/btreecheck.cc:34: first defined here collect2: ld returned 1 exit status make[2]: *** [bin/quartzcheck] Error 1 make[2]: Leaving directory `/home/6186/users/.home/opt/src/xapian-core-1.0.10' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/6186/users/.home/opt/src/xapian-core-1.0.10' make: *** [install] Error 2 Any thoughts? I'm running on mediatemple's gs, i686 GNU/Linux. Compiler: gcc (GCC) 3.4.4 20050314 (prerelease) (Debian 3.4.3-13sarge1). Thanks so much! Sat, 18 Apr 2009 06:17:54 +0000 http://blog.mattenoble.com/articles/guide-to-rails-full-text-search-with-xapian-on-a-shared-hosting-plan