@ersinfotech/es-indexer

7.1.0 • Public • Published

es-indexer

索引提交框架

Props

{
  es: {
    baseUrl: 'http://localhost:9200',
    index: 'facebook',
    type: 'feed'
  },
  maxIdPath: __dirname + '/../maxid',
  initMaxId: 0,
  getMaxId: function(results) {
    return _.last(results).id;
  },
  getDataAsync: function(maxId) {
    return Promise.resolve([]);
  }
}

Method

setMaxId(maxId)

Readme

Keywords

none

Package Sidebar

Install

npm i @ersinfotech/es-indexer

Weekly Downloads

1

Version

7.1.0

License

MIT

Unpacked Size

5.09 kB

Total Files

5

Last publish

Collaborators

  • ersinfotech