{"id":18463837,"url":"https://github.com/smartive/proc-that-elastic-loader","last_synced_at":"2025-04-08T07:32:47.558Z","repository":{"id":57149375,"uuid":"55243996","full_name":"smartive/proc-that-elastic-loader","owner":"smartive","description":"Loader for proc-that. Loads processed items into an elasticsearch index.","archived":false,"fork":false,"pushed_at":"2025-03-15T14:33:39.000Z","size":210,"stargazers_count":2,"open_issues_count":9,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T08:51:14.586Z","etag":null,"topics":["elasticsearch","node","typescript"],"latest_commit_sha":null,"homepage":"http://smartive.github.io/proc-that-elastic-loader","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smartive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-01T15:49:57.000Z","updated_at":"2023-01-15T16:24:19.000Z","dependencies_parsed_at":"2024-06-01T03:26:10.451Z","dependency_job_id":"dae55074-948b-4683-ad2b-be527e1ceba9","html_url":"https://github.com/smartive/proc-that-elastic-loader","commit_stats":{"total_commits":46,"total_committers":6,"mean_commits":7.666666666666667,"dds":0.4130434782608695,"last_synced_commit":"91ea7d23c6ce5b5376cd5eb3e24387860263fcaf"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartive%2Fproc-that-elastic-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartive%2Fproc-that-elastic-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartive%2Fproc-that-elastic-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartive%2Fproc-that-elastic-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smartive","download_url":"https://codeload.github.com/smartive/proc-that-elastic-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247796340,"owners_count":20997553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elasticsearch","node","typescript"],"created_at":"2024-11-06T09:08:07.152Z","updated_at":"2025-04-08T07:32:47.324Z","avatar_url":"https://github.com/smartive.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ElasticLoader\n\nLoader for `proc-that`. Loads processed items into an elasticsearch index.\n\n##### A bunch of badges\n\n[![Build Status](https://travis-ci.org/smartive/proc-that-elastic-loader.svg?maxAge=3600)](https://travis-ci.org/smartive/proc-that-elastic-loader)\n[![Build Status](https://ci.appveyor.com/api/projects/status/382q34ka9its372v?svg=true)](https://ci.appveyor.com/project/buehler/proc-that-elastic-loader)\n[![npm](https://img.shields.io/npm/v/proc-that-elastic-loader.svg?maxAge=3600)](https://www.npmjs.com/package/proc-that-elastic-loader)\n[![Coverage status](https://img.shields.io/coveralls/smartive/proc-that-elastic-loader.svg?maxAge=3600)](https://coveralls.io/github/smartive/proc-that-elastic-loader)\n[![license](https://img.shields.io/github/license/smartive/proc-that-elastic-loader.svg?maxAge=2592000)](https://github.com/smartive/proc-that-elastic-loader)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Greenkeeper badge](https://badges.greenkeeper.io/smartive/proc-that-elastic-loader.svg)](https://greenkeeper.io/)\n\n## Installation\n\n```bash\nnpm install --save proc-that-elastic-loader\n```\n\n## Usage\n\n```typescript\nimport {Etl} from 'proc-that';\nimport {ElasticLoader} from 'proc-that-elastic-loader';\n\nlet loader = new ElasticLoader({/*es-config*/}, 'index', 'type');\n\nnew Etl().addLoader(loader).start().subscribe(/*...*/);\n```\n\n### Custom id selector\n\nIf your object does not have the property \"id\" or you need to select\na different property for item identification, you can set the last constructor\nparameter `idSelector` and use a custom function.\n\n```typescript\nimport {Etl} from 'proc-that';\nimport {ElasticLoader} from 'proc-that-elastic-loader';\n\nlet loader = new ElasticLoader({/*es-config*/}, 'index', 'type', o =\u003e true, obj =\u003e obj.notDefaultId);\n\nnew Etl().addLoader(loader).start().subscribe(/*...*/);\n```\n\n### Predicate\n\nIf you process multiple item types and your items are not stored\ninto the same index or the same index type, you can use the `predicate` param\nto filter the items that are indexed by the loader. In the example below,\nall items with `.type === 'Type1'` are only processed by `type1Loader`\n and vice versa.\n\n```typescript\nimport {Etl} from 'proc-that';\nimport {ElasticLoader} from 'proc-that-elastic-loader';\n\nlet type1Loader = new ElasticLoader({/*es-config*/}, 'index', 'type_1', obj =\u003e obj.type === 'Type1');\nlet type2Loader = new ElasticLoader({/*es-config*/}, 'index', 'type_2', obj =\u003e obj.type === 'Type2');\n\nnew Etl().addLoader(type1Loader).addLoader(type2Loader).start().subscribe(/*...*/);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartive%2Fproc-that-elastic-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartive%2Fproc-that-elastic-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartive%2Fproc-that-elastic-loader/lists"}