{"_id":"@baymose/gatsby-source-elasticsearch","_rev":"1-f703e2e95588ef6b65fb00826c062e29","name":"@baymose/gatsby-source-elasticsearch","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@baymose/gatsby-source-elasticsearch","version":"1.0.0","description":"Gatsby Elasticsearch source plugin","scripts":{"build":"babel src --out-dir . --ignore *.test.js","test":"mocha --require babel-core/register ./src/*.test.js","test:watch":"mocha --watch --require babel-core/register ./src/index.test.js","preversion":"yarn test","version":"yarn build"},"homepage":"https://github.com/chuntley/gatsby-source-elasticsearch","repository":{"type":"git","url":"git+https://github.com/chuntley/gatsby-source-elasticsearch.git"},"keywords":["gatsby","gatsby-plugin","elasticsearch"],"author":{"name":"Chad Huntley"},"license":"MIT","devDependencies":{"babel-cli":"^6.24.1","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.7.0","eslint":"^3.19.0","eslint-config-airbnb":"^15.0.2","eslint-plugin-import":"^2.7.0","mocha":"^5.2.0"},"dependencies":{"elasticsearch":"^15.0.0"},"gitHead":"2937d6bb9a1267f314d9a933f62a6e2ea97400f3","bugs":{"url":"https://github.com/chuntley/gatsby-source-elasticsearch/issues"},"_id":"@baymose/gatsby-source-elasticsearch@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"baymose","email":"baymose@gmail.com"},"dist":{"integrity":"sha512-wCpvDCTcPgI8eqo8m6q2WSpafOtz4K966z8rhTl3VWYfAVG8vqjzl9iR88CB0BhF+FKdesHdny2lu8Q3PYVWlw==","shasum":"66f8bcaa0c4e6bc4de76eec3e742d85c8232bd3e","tarball":"https://registry.npmjs.org/@baymose/gatsby-source-elasticsearch/-/gatsby-source-elasticsearch-1.0.0.tgz","fileCount":12,"unpackedSize":94901,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbdKa5CRA9TVsSAnZWagAAYKcP/02SNtDbHExHeEHpJ0/G\nG1woIxAbB1ilUsvL2c79JmxOp0HlzxaCoA1OBzDclZsbRCi8UV+IJQ/kK5WI\nzh6j8+wiNTCz4t2E9WbxiMpgNaozLVJbP2l6KNoke5J7818jdToKPd8GDZ+o\nCf1NJAUfwX46+ZnEsRLzKXL1qP5OtbeD/o1OB2cLsn+RnjAs27WxIANdUADV\nANt29OnLptFEu0+dABwJjdBgCvMLQ6ybOheqZTTWKVmULsLsfI+Wjv2FXCOc\nQcE1RedHft95beN3Aq6zbJFoNmVhkWfH0I/4uyjV6jcIg6nU3TtCXLH4A1t5\n2QCNFHdQkU4cCYU24mVsLeSxsYITf0j8cv66EBBQwS/IqKTMoxhRzwvYbD1Y\n0BYaJYJBY/vhWd7McE1pXAhJwvyvIWvswgEc1HBzPsaCWm9/6QiT1jKqATb4\nop84X+znBr3xwiim1y+IF8a5gUaxAMySsqast5ExKByuFYBQom+4X7Czz/vr\n73WC8gCmP/b5558uLFbSbi2dc0WeX9SKMtUKYlDSy/dMor/sIOBfouHVm9T1\nleCxg4j7YzB23sXofa8FKVk9OR/z5jIG9Tf9SiszrsS+eFi0nfrjO5KOmLNK\nYkXp8UDnOP3KfnaXgltKdrfM++d8XVsCG9/BcQ/UVeJsiOvL06vFbQzp86oh\n+uft\r\n=XO0G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICHIp7HTffJHkpMXl/7Lp3+cfPqJJP8+XaiF70dtdQc2AiBxpW/V3H8l6UWfWcq8sdPePoMk2mP3gmra3vl3dshk7g=="}]},"maintainers":[{"name":"baymose","email":"baymose@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gatsby-source-elasticsearch_1.0.0_1534371512481_0.5095298561542019"},"_hasShrinkwrap":false}},"time":{"created":"2018-08-15T22:18:32.236Z","1.0.0":"2018-08-15T22:18:32.615Z","modified":"2022-04-04T17:49:10.144Z"},"maintainers":[{"name":"baymose","email":"baymose@gmail.com"}],"description":"Gatsby Elasticsearch source plugin","homepage":"https://github.com/chuntley/gatsby-source-elasticsearch","keywords":["gatsby","gatsby-plugin","elasticsearch"],"repository":{"type":"git","url":"git+https://github.com/chuntley/gatsby-source-elasticsearch.git"},"author":{"name":"Chad Huntley"},"bugs":{"url":"https://github.com/chuntley/gatsby-source-elasticsearch/issues"},"license":"MIT","readme":"# gatsby-source-elasticsearch\n\nGatsby source plugin for Elasticsearch.\n\nThis plugin uses the Elastisearch Scroll API to obtain any number of documents.\n\n## Installation\n\n```sh\nyarn add gatsby-source-elasticsearch\n```\n\n## Options\n\n| Option | Description | Type |\n| --- | --- | --- |\n| connection | Connection details | string, object |\n| index | The index to query against | string |\n| typeName | The type name to generate in Gatsby | string |\n| query | The query to run | string, object |\n\n## Config Examples\n\n### Basic\n\n```js\nmodule.exports = {\n  plugins: [\n    {\n      resolve: 'gatsby-source-elasticsearch',\n      options: {\n        connection: 'http://localhost:9200',\n        index: 'test-*',\n        typeName: 'testDocs',\n        query: 'type:test'\n      },\n    },\n  ],\n};\n```\n\n### Advanced Connection Option\n\nIf you pass the connection option as an object, you can use [Elasticsearch client configuration options](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/configuration.html).\n\n```js\nmodule.exports = {\n  plugins: [\n    {\n      resolve: 'gatsby-source-elasticsearch',\n      options: {\n        connection: {\n          host: 'http://localhost:9200',\n          log: 'info',\n        },\n        // ...\n      },\n    },\n  ],\n};\n```\n\n### Advanced Query Option\n\nIf you pass the query option as an object, you can build a normal [Elasticsearch search query](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/api-reference.html#api-search). Otherwise, when it is passed in as a string it uses [Elasticsearch query strings](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-uri-request.html)\n\n```js\nmodule.exports = {\n  plugins: [\n    {\n      resolve: 'gatsby-source-elasticsearch',\n      options: {\n        query: {\n          bool: {\n            filter: [\n              { term: { test: 'this' } },\n            ],\n          },\n        },\n        // ...\n      },\n    },\n  ],\n};\n```\nNOTE: This plugin does not support aggregations.\n","readmeFilename":"README.md"}