Skip to content
This repository has been archived by the owner on Jan 8, 2018. It is now read-only.

Commit

Permalink
[DOC] Update information for installing ElasticSearch to the 0.19.0 v…
Browse files Browse the repository at this point in the history
…ersion
  • Loading branch information
karmi committed Mar 16, 2012
1 parent 039cc09 commit ac42137
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions README.markdown
Expand Up @@ -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_:

Expand Down
12 changes: 6 additions & 6 deletions examples/rails-application-template.rb
Expand Up @@ -62,7 +62,7 @@
tmp/**/*
config/database.yml
db/*.sqlite3
vendor/elasticsearch-0.17.6/
vendor/elasticsearch-0.19.0/
END

git :init
Expand All @@ -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"
Expand Down
18 changes: 9 additions & 9 deletions examples/tire-dsl.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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.
#
Expand Down Expand Up @@ -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.
#
Expand All @@ -694,7 +694,7 @@ def self.search

# We will just get all articles in this case.
#
query { all }
query { all }

sort do

Expand Down Expand Up @@ -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.
#
Expand Down

0 comments on commit ac42137

Please sign in to comment.