-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
44 lines (38 loc) · 1.05 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 [email protected]: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