Skip to content

Instantly share code, notes, and snippets.

@honbin
Created November 29, 2012 07:01
Show Gist options
  • Save honbin/4167288 to your computer and use it in GitHub Desktop.
Save honbin/4167288 to your computer and use it in GitHub Desktop.

#whats ElasticSearch Luceneベースの全文検索システム

#feature

  • HTTP API(REST)

##for example ###PUT

curl -XPUT http://localhost:9200/twitter/tweet/1 -d '{
  "name":"Shay Banon"
}'

###GET

curl -XGET http://localhost:9200/twitter/tweet/1

#Set up

##ElasticSearch install

brew install elasticsearch

##kuromoji install(日本語形態素解析)

cd /usr/local/Cellar/elasticsearch/0.19.10
bin/plugin -install elasticsearch/elasticsearch-analysis-kuromoji/1.0.0
git clone git://github.com/elasticsearch/elasticsearch-analysis-kuromoji.git
cd elasticsearch-analysis-kuromoji/
cp target/elasticsearch-analysis-kuromoji-1.2.0-SNAPSHOT.jar ../plugins/analysis-kuromoji/elasticsearch-analysis-kuromoji-1.0.0.jar

#Ruby client for ElasticSearch Tire

#Try

rails new searchapp -m https://raw.github.com/karmi/tire/master/examples/rails-application-template.rb

or https://github.com/penguinco/ld_gourmet_search

#参考URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment