tanker 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +22 -1
  2. data/VERSION +1 -1
  3. data/tanker.gemspec +1 -1
  4. metadata +2 -2
data/README.rdoc CHANGED
@@ -25,6 +25,10 @@ And run
25
25
  == Initialization
26
26
  If you're using Rails, config/initializers/tanker.rb is a good place for this:
27
27
 
28
+ YourAppName::Application.config.index_tank_url = 'http://:xxxxxxxxx@xxxxx.api.indextank.com'
29
+
30
+ If you are not using rails you can put this somewhere before you load your modesl
31
+
28
32
  Tanker.configuration = {:url => 'http://:xxxxxxxxx@xxxxx.api.indextank.com' }
29
33
 
30
34
  You would probably want to have a fancier configuration depending on
@@ -40,6 +44,9 @@ in the IndexTank Dashboard
40
44
  include Tanker
41
45
 
42
46
  # define the index by supplying the index name and the fields to index
47
+ # this is the index name you create in the Index Tank dashboard
48
+ # you can use the same index for various models Tanker can handle
49
+ # indexing searching on different models with a single Index Tank index
43
50
  tankit 'my_index' do
44
51
  indexes :title
45
52
  indexes :content
@@ -75,9 +82,23 @@ Paginate Results
75
82
 
76
83
  <% will_paginate(@topics) %>
77
84
 
85
+ == Reindex your data
86
+
87
+ If you are using rails 3 there are of couple of rake tasks included in your project
88
+
89
+ rake tanker:clear_indexes
90
+
91
+ This task deletes all your indexes and recreates empty indexes, if you have not created
92
+ the indexes in the Index Tank interface this task creates them for you provided
93
+ you have enough indexes in your account.
94
+
95
+ rake tanker:reindex
96
+
97
+ This task re-indexes all the your models that have the Tanker module included.
98
+ Usually you will only need a single Index Tank index but if you want to separate
99
+ your indexes please use different index names in the tankit method call in your models
78
100
 
79
101
  == TODO
80
- * Rake Tasks to update the index.
81
102
  * Documentation
82
103
  * More fancy stuff (Suggestions?)
83
104
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
data/tanker.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tanker}
8
- s.version = "0.5.0"
8
+ s.version = "0.5.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["@kidpollo"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 0
9
- version: 0.5.0
8
+ - 1
9
+ version: 0.5.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - "@kidpollo"