tanker 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +22 -1
- data/VERSION +1 -1
- data/tanker.gemspec +1 -1
- 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.
|
1
|
+
0.5.1
|
data/tanker.gemspec
CHANGED