Free Rails Open Search Engine, v1
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib
log
public
script
vendor
.gitignore
Gemfile
Gemfile.lock
README
Rakefile
config.ru

README

3rose - Free Rails Open Search Engine

== Installation ==
#1
install all need linux packages:
-RVM (http://beginrescueend.com/)
-Ruby 1.9.3
-Rails 3
-Tomcat 6 (Synaptic Package Manager)
-JODConverter (Synaptic Package Manager)
-Sphinx 0.9.9 (http://sphinxsearch.com/downloads/archive/)
  "sudo gedit /usr/local/etc/sphinx.conf"
  copy there content of the "../3rose/config/sphinx/sphinx.conf"
  set right full path for example: 
  "xmlpipe_command = cat /home/alex/git/3rose/uploads/content.xml"
  "path = /home/alex/git/3rose/sphinx/sphinx"

#2 download project
mkdir 3rose
cd 3rose
git clone git@github.com:abratashov/3rose.git
cd 3rose
rake gen_directories
--3rose
----3rose
----sphinx
----uploads
------origin_books
------pdf
------txt_pages

#3 start tomcat:
sudo /etc/init.d/tomcat6 start

#4 start sphinx:
sudo /usr/local/bin/searchd

#5 rails s

#6 indexed all added books
rake gen_sphinx_xml          #generate content xml
sudo kill -9 'pgrep searchd' #stop searchd service
sudo indexer --all           #make indexation
sudo /usr/local/bin/searchd  #start searchd service