Module helper

The helper module

Info:

  • Author: Dhaval Kapil

Functions

helpers.reindex (sourceClient, sourceIndex, targetIndex, query, targetClient, scroll, scanParams, bulkParams) Reindex all documents from one index to another index that satisfy a given query


Functions

helpers.reindex (sourceClient, sourceIndex, targetIndex, query, targetClient, scroll, scanParams, bulkParams)
Reindex all documents from one index to another index that satisfy a given query

Parameters:

  • sourceClient
    The source client
    
  • sourceIndex
     The source index
    
  • targetIndex
     The target index
    
  • query
           Search query to filter data to be reindexed
                           query is for request body search
    
  • targetClient
    The target client
    
  • scroll
          Specify how long a consistent view of the index
                           should be maintained for scrolled search
    
  • scanParams
      Additional params passed to scan
    
  • bulkParams
      Additional params passed to bulk
    

Returns:

    boolean true if success, otherwise false
generated by LDoc 1.4.3 Last updated 2016-10-29 22:14:22