From cedd1b1adaefe234c1aa0aeff712b93a8f5d960d Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Tue, 16 Jul 2013 02:52:30 -0700 Subject: [PATCH] Removed gotcha --- README.md | 8 -------- 1 file changed, 0 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 859400b..95dc95e 100644 --- a/README.md +++ b/README.md @@ -116,14 +116,6 @@ Thanks to Jaroslav Kalistsuk for the [original implementation](https://gist.gith ## Elasticsearch Gotchas -### Mappings - -When changing the mapping in a model, you must create a new index for the changes to take place. Elasticsearch does not support updates to mappings. For zero downtime, use the `reindex` method above, which creates a new index and swaps it in after it's built. To view the current mapping, use: - -```sh -curl "http://localhost:9200/products/_mapping?pretty=1" -``` - ### Inconsistent Scores Due to the distributed nature of Elasticsearch, you can get incorrect results when the number of documents in the index is low. 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}`. -- libgit2 0.21.0