Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
(ac)tive (e)ngine for (s)earch in (h)eavy & l(igh)t ruby apps. Exposes the Lucene Java libraries to any implementation of Ruby by using JRuby (DRb as a messaging server) and Clojure as an interop JVM language to interface with Lucene.
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.rspec
README.md
aceshigh_server.rb
search_engine.rb

README.md

Code Climate

aceshigh

(ac)tive (e)ngine for (s)earch in (h)eavy & l(igh)t ruby web apps (rails, sinatra, ...)

Exposes the Lucene Java libraries to any implementation of Ruby by using JRuby (DRb as a messaging server) and Clojure as an interop JVM language to interface with Lucene.

irb demo

open a JRuby terminal (if using rvm: rvm use jruby or chruby jruby if using chruby)

go inside the aceshigh dir and type

jruby aceshigh_server.rb druby://localhost:12345 

should get output of

druby://localhost:12345

search server is running

Example Usage

now open a second terminal with MRI Ruby (rvm use ruby or chruby ruby if using chruby)

type

irb

in irb type

> require 'drb/drb'
> client = DRbObject.new_with_uri('druby://localhost:12345')
> client.index({:name => "Miles", :hobby => "snowboarding"})
> client.index({:name => "Miles", :hobby => "couch-surfing"})
> client.index({:name => "Lisa",  :hobby => "Bookworm"})
> client.search("name:Miles")
=> [{"hobby"=>"snowboarding"}, {"hobby"=>"couch-surfing"}]
Something went wrong with that request. Please try again.