Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…nd set a german stemmer by default
  • Loading branch information...
commit a87bb78b249661bba847440224298d9788eeb721 1 parent 1f32cae
@lsmith77 lsmith77 authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.