README.md
[![Code Climate](https://codeclimate.com/github/vothane/ace_of_spades.png)](https://codeclimate.com/github/vothane/aceshigh)
aceshigh
========
> for "The Few" and their finest hour
> ... may we do the same
#### new features
- search query suggestions/autocomplete using a a LSTM deep learner
- search result docs ranking using the Word2Vec NLP algorithm
(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"}]
```