Trackbacks

Use the following link to trackback from your own site:
http://locomotivation.com/trackbacks?article_id=simple-ruby-on-rails-full-text-search-using-xapian&day=23&month=07&year=2008

  1. Buy cheap viagra online uk. Buy cheap viagra.
    Buy cheap viagra online uk. Viagra cialis levitra buy cheap cialis buy ciali.

Comments

  • Avatar
    holyts
    about 13 hours later:

    you should try sphinx


  • Avatar
    Jim
    about 14 hours later:

    @holyts – We tried sphinx. That is what drove us to Xapian. ;-)

    Though to Sphinx’s defense, we did not try ThinkingSphinx which appears to be more in favor over UltraSphinx now a days.


  • Avatar
    Kevin
    1 day later:

    Can you elaborate? I am prototyping with Sphinx and ThinkingSphinx with an eye to migrating away from Ferret. Xapian sounds interesting, but I haven’t yet run across much information on why it would be better and Sphinx seems to have more development and adoption momentum.


  • Avatar
    Jim
    1 day later:

    @Kevin – As I mentioned in my previous post we decided against Ultrasphinx due to its configuration system and relative complexity to get it up and running.

    Xapian didn’t have any config files to mess with and came with a lot out of the box like spell checking and similar result queries that we were wanting to implement.

    With that being said, it is still relatively unknown in the Ruby / Rails circles especially when compared to Sphinx, Ferrett, and Solr. Francis did recently start a acts_as_xapian google group to hopefully help out with questions.


  • Avatar
    Drogomir
    1 day later:

    As I see Xapian doesn’t need server running. Is that right?

    It means no monitoring and problems with failing requests :)


  • Avatar
    Ryan Bates
    1 day later:

    Xapian looks really cool. I would like to see a variation of acts_as_xapian which has a closer interface to Thinking Sphinx in the way it defines indexes and performs searches.

    Full text searching bliss!


  • Avatar
    slainer68
    1 day later:

    Hi,

    in one big projects we had to evaluate the different full text search engines.

    We use a lot of STI models in our projects and every plugin we tried fail to correctly handle this case.

    Does someone already use a plugin that correctly works with STI models ?

    Thanks, slainer68.


  • Avatar
    Jim
    2 days later:

    @Ryan – I believe that Francis based acts_as_xapian very closely on acts_as_solr. A “thinking_xapian” type plugin is probably a great idea being how popular thinking_sphinx has become.

    @slainer68 – How are these plugins failing? We have an “Author” model that is an STI to our “User” model and acts_as_xapian worked out of the box.

    We simply added the following to our Author model and search worked as it did on our other indexed models.

    class Author < User
     # Xapian indexing
      acts_as_xapian :texts => [:email, :first_name, :last_name, :nickname, :id]
    end
    

  • Avatar
    Ryan Bates
    2 days later:

    @slainer68, have you tried acts_as_xapian? It looks like it identifies a model by its class name internally, not the name of the table. So I think it would work well with STI.


  • Avatar
    slainer68
    2 days later:

    Hi, thanks for your answers. I have not tested acts_as_xapian yet.

    I have tried UltraSphinx et ThinkingSphinx.

    In the last days there were some commits in TS to enhance support for STI models but the support is not complete yet.

    I'll try acts_as_xapian soon on one of my projects with some STI models and see if it behave well on STI models.

    Will try to remember to post my conclusion :).


  • Avatar
    kf4f
    5 days later:

    I am using acts_as_ferret, but only in development. After reading all the blogs, I am interested trying Xapian before we move to full production. With Xapian, is it possible to define other qualifiers in the sql? eg in the example above we have Lesson:

    class Lesson < ActiveRecord::Base acts_as_xapian :texts => [:name, :description] end

    Lets say Lesson also includes teacher id and I want to filter the name description on a particular teacher. Is this possible?

    Thanks

    K.


  • Avatar
    Nils Jonsson
    9 days later:

    Thanks for this thorough write-up! Will have to give Xapian a try.


  • Avatar
    Jason
    9 days later:

    Yeah acts_as_xapian looks cool. Thanks for the tutorial!


  • Avatar
    Jason Derrett
    21 days later:

    Nice post! Very helpful.




Have a take?