Permalink
Browse files

[DOC] Update information for installing ElasticSearch to the 0.19.0 v…

…ersion
  • Loading branch information...
karmi committed Mar 16, 2012
1 parent 039cc09 commit ac421370a9da02908b267710425e36109b6ded61
Showing with 18 additions and 18 deletions.
  1. +3 −3 README.markdown
  2. +6 −6 examples/rails-application-template.rb
  3. +9 −9 examples/tire-dsl.rb
View
@@ -19,9 +19,9 @@ Installation
OK. First, you need a running _ElasticSearch_ server. Thankfully, it's easy. Let's define easy:
- $ curl -k -L -o elasticsearch-0.17.6.tar.gz http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.6.tar.gz
- $ tar -zxvf elasticsearch-0.17.6.tar.gz
- $ ./elasticsearch-0.17.6/bin/elasticsearch -f
+ $ curl -k -L -o elasticsearch-0.19.0.tar.gz http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.0.tar.gz
+ $ tar -zxvf elasticsearch-0.19.0.tar.gz
+ $ ./elasticsearch-0.19.0/bin/elasticsearch -f
See, easy. On a Mac, you can also use _Homebrew_:
@@ -62,7 +62,7 @@
tmp/**/*
config/database.yml
db/*.sqlite3
- vendor/elasticsearch-0.17.6/
+ vendor/elasticsearch-0.19.0/
END
git :init
@@ -71,11 +71,11 @@
unless (RestClient.get('http://localhost:9200') rescue false)
COMMAND = <<-COMMAND.gsub(/^ /, '')
- curl -k -L -# -o elasticsearch-0.17.6.tar.gz \
- "http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.6.tar.gz"
- tar -zxf elasticsearch-0.17.6.tar.gz
- rm -f elasticsearch-0.17.6.tar.gz
- ./elasticsearch-0.17.6/bin/elasticsearch -p #{destination_root}/tmp/pids/elasticsearch.pid
+ curl -k -L -# -o elasticsearch-0.19.0.tar.gz \
+ "http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.0.tar.gz"
+ tar -zxf elasticsearch-0.19.0.tar.gz
+ rm -f elasticsearch-0.19.0.tar.gz
+ ./elasticsearch-0.19.0/bin/elasticsearch -p #{destination_root}/tmp/pids/elasticsearch.pid
COMMAND
puts "\n"
View
@@ -45,9 +45,9 @@
[ERROR] You don’t appear to have ElasticSearch installed. Please install and launch it with the following commands:
- curl -k -L -o elasticsearch-0.17.6.tar.gz http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.17.6.tar.gz
- tar -zxvf elasticsearch-0.17.6.tar.gz
- ./elasticsearch-0.17.6/bin/elasticsearch -f
+ curl -k -L -o elasticsearch-0.19.0.tar.gz http://github.com/downloads/elasticsearch/elasticsearch/elasticsearch-0.19.0.tar.gz
+ tar -zxvf elasticsearch-0.19.0.tar.gz
+ ./elasticsearch-0.19.0/bin/elasticsearch -f
INSTALL
### Storing and indexing documents
@@ -319,7 +319,7 @@ def self.search
# # 2011-04-24 11:34:01:150 [CREATE] ("articles")
# #
# curl -X POST "http://localhost:9200/articles"
- #
+ #
# # 2011-04-24 11:34:01:152 [200]
#
logger 'elasticsearch.log'
@@ -606,10 +606,10 @@ def self.search
# are returned.
#
s = Tire.search 'articles' do
-
+
# We will use just the same **query** as before.
#
- query { string 'title:T*' }
+ query { string 'title:T*' }
# But we will add a _terms_ **filter** based on tags.
#
@@ -671,7 +671,7 @@ def self.search
# We will search for articles tagged “ruby”, again, ...
#
- query { string 'tags:ruby' }
+ query { string 'tags:ruby' }
# ... but will sort them by their `title`, in descending order.
#
@@ -694,7 +694,7 @@ def self.search
# We will just get all articles in this case.
#
- query { all }
+ query { all }
sort do
@@ -728,7 +728,7 @@ def self.search
s = Tire.search 'articles' do
# Let's search for documents containing word “Two” in their titles,
- query { string 'title:Two' }
+ query { string 'title:Two' }
# and instruct _ElasticSearch_ to highlight relevant snippets.
#

0 comments on commit ac42137

Please sign in to comment.