intel 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/lib/intel/search.rb +1 -1
- data/lib/intel/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a561febeae06ecff18de54051393a9e0f2a4fcd3
|
4
|
+
data.tar.gz: 3e4ca19b2991ec4c670b15ec76c1ee9023d1a116
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a87dba04f8d5026c2d580b2dd1394c046dbd14532628e7d9af7a03da1c2d3c7cf6d04ee4e9dc69b42d331826b2c640bfcb3fe46ffbe5b9446de626644ba221ae
|
7
|
+
data.tar.gz: 981819447038b90c4f32ab91f815843086b142a9f559536b637d88a9b965de269fd7d77a6c4d0f9421e0c6f9eacf771886cf516250535cedc907b83c94b4ff2d
|
data/README.md
CHANGED
@@ -12,6 +12,8 @@
|
|
12
12
|
|
13
13
|
Works with Rails 3.1+ and any search engine, including Elasticsearch, Sphinx, and Solr
|
14
14
|
|
15
|
+
:tangerine: Battle-tested at [Instacart](https://www.instacart.com)
|
16
|
+
|
15
17
|
## Get Started
|
16
18
|
|
17
19
|
Add this line to your application’s Gemfile:
|
@@ -63,22 +65,22 @@ It’s that easy.
|
|
63
65
|
|
64
66
|
### Track Conversions
|
65
67
|
|
66
|
-
First, choose a conversion metric. At
|
68
|
+
First, choose a conversion metric. At Instacart, an item added to the cart from the search results page counts as a conversion.
|
67
69
|
|
68
70
|
Next, when a user searches, keep track of the search id. With Searchkick, you can get the id with `@results.search.id`.
|
69
71
|
|
70
|
-
When a user converts, find the record and call `
|
72
|
+
When a user converts, find the record and call `convert`.
|
71
73
|
|
72
74
|
```ruby
|
73
75
|
search = Intel::Search.find params[:id]
|
74
|
-
search.
|
76
|
+
search.convert
|
75
77
|
```
|
76
78
|
|
77
79
|
Better yet, record the model that converted.
|
78
80
|
|
79
81
|
```ruby
|
80
82
|
item = Item.find params[:item_id]
|
81
|
-
search.
|
83
|
+
search.convert(item)
|
82
84
|
```
|
83
85
|
|
84
86
|
### Authentication
|
data/lib/intel/search.rb
CHANGED
data/lib/intel/version.rb
CHANGED