Skip to content

CLI tool to reindex all documents from one ES mapping to another (possibly between different servers)

License

Notifications You must be signed in to change notification settings

MailOnline/es-reindex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

es-reindex

Build Status

CLI tool to reindex all documents from one ES mapping to another, possibly between different ES clusters.

Installation

Install Haskell Stack. Type stack install to install the tool.

Usage

Examples:

es-reindex article-v5 article article-v6 article -s http://10.251.64.51:9200/ -d http://10.251.64.51:9200/ -l 100

With a filter (reindexing all articles modified during the previous year):

echo 'RangeFilter (FieldName "modifiedDate") (RangePair [("gte", String "now-2y/y"), ("lt", String "now-1y/y")]) RangeExecutionIndex False' | es-reindex article-v5 article article-v6 article -s http://10.251.64.51:9200/ -d http://10.251.64.51:9200/ -l 100 -f -

Filters use Haskell syntax for Bloodhound filters (http://hackage.haskell.org/package/bloodhound-0.11.0.0/docs/Database-Bloodhound-Types.html#t:Filter)

About

CLI tool to reindex all documents from one ES mapping to another (possibly between different servers)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Haskell 100.0%