-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: compatibility with elasticsearch 2 (#916)
Fixes a number of deprecated features in elasticsearch 1 that got removed in elasticsearch 2: - Replaces multi-field type for a string with a nested field (deprecated in elasticsearch 1). - Avoids the `.` in field definitions (invalid in elasticsearch 2). - Removes the path definition that isn't needed (deprecated in elasticsearch 2). - Renames `default_index` as `default` (deprecated in elasticsearch 1). - Use size instead of limit filter (deprecated in elasticsearch 1). - Uses aggregations instead of facet searches (deprecated in elasticsearch 2). These changes are compatible with elasticsearch v1.7 and v2.4 and the [elasticsearch migration plugin](https://github.com/elastic/elasticsearch-migration/tree/1.x) returns a full green status. To test against elasticsearch 2, you must tweak the docker compose service. For some reason the `index.max_result_window` setting must be increased from the default of 10000. For example: ```yaml services: elasticsearch: image: elasticsearch:2.4-alpine command: elasticsearch -Dindex.max_result_window=1000000 ```
- Loading branch information
1 parent
0de95ab
commit 3974045
Showing
8 changed files
with
63 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters