getLogItem method

Map<String, dynamic> getLogItem()

Implementation

Map<String, dynamic> getLogItem() {
  return _includeTypeName
      ? {
          '_index': _currentIndex,
          '_type': 'log_message',
          '_id': IdGenerator.nextLong()
        } // ElasticSearch 6.x
      : {
          '_index': _currentIndex,
          '_id': IdGenerator.nextLong()
        }; // ElasticSearch 7.x
}