public
Fork of frabcus/acts_as_xapian
Description: Xapian full text search plugin for DataMapper rewrite of acts_as_xapian
Homepage: http://github.com/joshaven/dm-xapian
Clone URL: git://github.com/psq/dm-xapian.git
name age message
file .gitignore Tue Sep 23 23:14:28 -0700 2008 initial commit [Pascal]
file CHANGES.txt Fri Feb 06 23:54:59 -0800 2009 searches indenpendent of accentuation [Pascal]
file LICENSE Sat Nov 08 21:12:50 -0800 2008 applied Emm patch, updated version, license, ad... [Pascal]
file README.txt Tue Sep 23 23:39:46 -0700 2008 Forgot a critical bit to the instructions: need... [Pascal]
file Rakefile Fri Feb 06 23:54:59 -0800 2009 searches indenpendent of accentuation [Pascal]
file SETUP.txt Tue Sep 23 23:14:28 -0700 2008 initial commit [Pascal]
file TODO Tue Sep 23 23:14:28 -0700 2008 initial commit [Pascal]
directory bin/ Wed Feb 04 02:17:41 -0800 2009 changed daemon name [Pascal]
file dm-xapian.gemspec Fri Feb 06 23:54:59 -0800 2009 searches indenpendent of accentuation [Pascal]
directory lib/ Fri Feb 06 23:54:59 -0800 2009 searches indenpendent of accentuation [Pascal]
README.txt
CONTRIBUTORS WELCOME

Currently somewhat tested, but, ahem, no spec:

* rake xapian:update_index models="model1 model2 ..."
* rake xapian:rebuild_index models="model1 model2 ..."
* rake xapian:query models="model1 model2 ..." query="..."
* tracking of models to be updated after added or updated (via rake xapian:update_index)


dm-xapian
=========

Merb plugin that provides use of the Ruby Xapian search engine library.


Setup
=====

For setup instructions read through SETUP.txt, its short and tells you where to get what else you need and what to do 
with it.


Xapian
======

Xapian is an Open Source Search Engine Library, released under the GPL. It's written in C++, with bindings to allow use 
from Perl, Python, PHP, Java, Tcl, C# and Ruby (so far!)

Xapian is a highly adaptable toolkit which allows developers to easily add advanced indexing and search facilities to 
their own applications. It supports the Probabilistic Information Retrieval model and also supports a rich set of 
boolean query operators.

If you're after a packaged search engine for your website, you should take a look at Omega: an application we supply 
built upon Xapian. Unlike most other website search solutions, Xapian's versatility allows you to extend Omega to meet 
your needs as they grow.

The latest stable version is 1.0.7, released on 2008-07-15.

http://xapian.org/


Xapian Bindings for Ruby
========================
The Ruby bindings for Xapian are packaged in the xapian module. 

General info: http://xapian.org/docs/bindings/ruby/
API Docs:     http://xapian.org/docs/bindings/ruby/rdocs/

To Use
======
* install gem via "rake install"
* add to config/init.rb:
  dependencies "dm-xapian"
* add the dm-xapian models to the database:
  rake dm:automigrate
* Add to each model:
  is_indexed :texts => [ :name, :region, :country, :varietal ],
     :values => [[:price, 0, "price", :float], [:ean, 1, "ean", :string]],
     :terms => [ [ :winery, 'W', "winery" ] ]
  
  * Terms are global across all models
  * texts, values and terms based on properties