Has anyone made a Ruby Gem package of Xapian? I recently built a Ruby on Rails project and was able to drop in the Ferret Gem (a port of Lucene) and the acts_as_ferret Gem, and searching was easily handled in my Rails application. But I've been working with Xapian in PHP for a few years now, and I'd love to use it in my Rails application. It might be nice to get some more Ruby attention for Xapian along the way. Has anyone tried to package Xapian as a Ruby Gem yet? I don't want to reinvent the wheel, but if nobody has yet, it might be fun to try and useful to others.
On Wed, Nov 14, 2007 at 05:03:59PM -0500, Mike Boone wrote:> Has anyone made a Ruby Gem package of Xapian? I recently built a Ruby > on Rails project and was able to drop in the Ferret Gem (a port of > Lucene) and the acts_as_ferret Gem, and searching was easily handled > in my Rails application. But I've been working with Xapian in PHP for > a few years now, and I'd love to use it in my Rails application. It > might be nice to get some more Ruby attention for Xapian along the > way. > > Has anyone tried to package Xapian as a Ruby Gem yet? I don't want to > reinvent the wheel, but if nobody has yet, it might be fun to try and > useful to others.I'm not aware of it, but I'm starting to use Rails at work so I'd be interested in the idea. I don't have experience making gems, so I'm not sure how much help I could be (plus, as always, I'm terrifyingly busy). But I can at the least provide moral support, and perhaps at some point a user or two. (I might be able to persuade our development team to play with Xapian in future; they're using Ferret at the moment because it's so easy to drop in.) J -- /--------------------------------------------------------------------------\ James Aylett xapian.org james@tartarus.org uncertaintydivision.org
On 2007-11-14 17:03:59 -0500, Mike Boone wrote:> Has anyone made a Ruby Gem package of Xapian? I recently built a Ruby > on Rails project and was able to drop in the Ferret Gem (a port of > Lucene) and the acts_as_ferret Gem, and searching was easily handled > in my Rails application. But I've been working with Xapian in PHP for > a few years now, and I'd love to use it in my Rails application. It > might be nice to get some more Ruby attention for Xapian along the > way. > > Has anyone tried to package Xapian as a Ruby Gem yet? I don't want to > reinvent the wheel, but if nobody has yet, it might be fun to try and > useful to others.1. it doesnt have to be a gem to be usable within rails. plain old way of installing ruby extensions works well. 2. someone would need to write a acts_as_xapian to get the same integration with the rails framework you are looking more for part 2 right? darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
On Nov 15, 2007 8:08 AM, Marcus Rueckert <darix@web.de> wrote:> 1. it doesnt have to be a gem to be usable within rails. > plain old way of installing ruby extensions works well.I figured as much...I just thought making Xapian into a Gem would make it more accessible to others. However, I took a look at the Ferret Gem and it's fairly complex for someone who has not made a Gem before. It looks like there is Ruby code in there to generate a Makefile and then compile the Ferret C code. My C expertise in Unix doesn't go very far beyond ./configure and make, make install. So maybe the best thing for now is to leave that step alone and just stick with Xapian's install with Ruby extensions, unless someone else wants to have a go.> 2. someone would need to write a acts_as_xapian to get the same > integration with the rails framework > > you are looking more for part 2 right?This is the part I'd be interested in and capable of working on. I imagine it wouldn't be too different from acts_as_ferret (from the user's perspective) and I'm familiar with working with Xapian through PHP. I'll have a look at it.