Skip to content
Browse files

added various startup scripts, added ES config to disable multicast a…

…nd set a german stemmer by default
  • Loading branch information...
1 parent 1f32cae commit a87bb78b249661bba847440224298d9788eeb721 @lsmith77 lsmith77 committed Jan 10, 2011
Showing with 41 additions and 1 deletion.
  1. +12 −0 README
  2. +19 −0 elasticsearch.yml
  3. +1 −1 setup.sh → es_setup.sh
  4. +3 −0 es_start.sh
  5. +3 −0 frontend_start.sh
  6. +3 −0 update_index.sh
View
12 README
@@ -1 +1,13 @@
Prototyping a search engine for drs.ch for Liip.ch hackday
+
+run ./es_setup.sh
+
+Also needs node to be installed, then (require a DB dump)
+
+run ./update_index.sh
+
+and finally
+
+run ./frontend_start.sh
+
+Stemmer requires elasticsearch 0.14.2 +1 (probably 0.15.0)
View
19 elasticsearch.yml
@@ -0,0 +1,19 @@
+cluster:
+ name: foo
+discovery:
+ zen:
+ ping:
+ multicast:
+ enabled: false
+
+index:
+ analysis:
+ analyzer:
+ default:
+ type: custom
+ tokenizer: whitespace
+ filter: [snowball]
+ filter:
+ snowball:
+ type: snowball
+ language: German2
View
2 setup.sh → es_setup.sh
@@ -12,4 +12,4 @@ tar -zxvf elasticsearch.tar.gz
ln -s "elasticsearch-$VERSION" elasticsearch
# start
-cd elasticsearch; ./bin/elasticsearch -f
+./bin/es_start.sh
View
3 es_start.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+cd elasticsearch; ./bin/elasticsearch -f -Des.config=../elasticsearch.yml
View
3 frontend_start.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+node frontend.js
View
3 update_index.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+node indexer.js

0 comments on commit a87bb78

Please sign in to comment.
Something went wrong with that request. Please try again.