Commit ebcf13c7d58463b0f3fc08330f29995ca0c48075
1 parent
39b9f96d
Exists in
master
and in
21 other branches
Updated readme
Showing
1 changed file
with
6 additions
and
4 deletions
Show diff stats
README.md
@@ -6,7 +6,7 @@ Search made easy | @@ -6,7 +6,7 @@ Search made easy | ||
6 | 6 | ||
7 | ### Searches | 7 | ### Searches |
8 | 8 | ||
9 | -Searchkick provides sensible search defaults out of the box. It handles: | 9 | +Searchkick provides sensible search defaults out of the box. It handles: |
10 | 10 | ||
11 | - stemming - `tomatoes` matches `tomato` | 11 | - stemming - `tomatoes` matches `tomato` |
12 | - special characters - `jalapenos` matches `jalapeños` | 12 | - special characters - `jalapenos` matches `jalapeños` |
@@ -15,7 +15,9 @@ Searchkick provides sensible search defaults out of the box. It handles: | @@ -15,7 +15,9 @@ Searchkick provides sensible search defaults out of the box. It handles: | ||
15 | 15 | ||
16 | ### Make Searches Better Over Time | 16 | ### Make Searches Better Over Time |
17 | 17 | ||
18 | -Use analytics on search conversions to improve results | 18 | +Use analytics on search conversions to improve results. |
19 | + | ||
20 | +Also, give popular documents a little boost. | ||
19 | 21 | ||
20 | ### Zero Downtime Changes | 22 | ### Zero Downtime Changes |
21 | 23 | ||
@@ -57,9 +59,9 @@ When changing the mapping in a model, you must create a new index for the change | @@ -57,9 +59,9 @@ When changing the mapping in a model, you must create a new index for the change | ||
57 | curl http://localhost:9200/books/_mapping | 59 | curl http://localhost:9200/books/_mapping |
58 | ``` | 60 | ``` |
59 | 61 | ||
60 | -### Low Number of Documents | 62 | +### Inconsistent Scores |
61 | 63 | ||
62 | -By default, Tire creates an index on 5 shards - even in development. With a low number of documents, you will get inconsistent relevance scores by default. You can [read more about it here](http://www.elasticsearch.org/blog/understanding-query-then-fetch-vs-dfs-query-then-fetch/). To fix this, set the search type to `dfs_query_and_fetch`. Alternatively, you can just use one shard `settings: {number_of_shards: 1}`. | 64 | +Elasticsearch was built to be distributed. However, with a low number of documents, the default settings can give us incorrect results. You can [read more about it here](http://www.elasticsearch.org/blog/understanding-query-then-fetch-vs-dfs-query-then-fetch/). To fix this, set the search type to `dfs_query_and_fetch`. Alternatively, you can just use one shard with `settings: {number_of_shards: 1}`. |
63 | 65 | ||
64 | ## Installation | 66 | ## Installation |
65 | 67 |