{"id":16487123,"url":"https://github.com/vsimko/node-solr-lambda","last_synced_at":"2026-01-24T19:03:19.616Z","repository":{"id":33639640,"uuid":"137935403","full_name":"vsimko/node-solr-lambda","owner":"vsimko","description":"Minimalistic Solr client written in functional programming style","archived":false,"fork":false,"pushed_at":"2023-09-27T20:44:28.000Z","size":514,"stargazers_count":1,"open_issues_count":3,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-20T22:59:10.581Z","etag":null,"topics":["functional-style","node-js","node-module","solr","solr-client"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vsimko.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2018-06-19T19:21:07.000Z","updated_at":"2022-03-24T18:20:40.000Z","dependencies_parsed_at":"2025-04-20T14:47:53.801Z","dependency_job_id":null,"html_url":"https://github.com/vsimko/node-solr-lambda","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/vsimko/node-solr-lambda","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsimko%2Fnode-solr-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsimko%2Fnode-solr-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsimko%2Fnode-solr-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsimko%2Fnode-solr-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vsimko","download_url":"https://codeload.github.com/vsimko/node-solr-lambda/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vsimko%2Fnode-solr-lambda/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28734759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T17:51:25.893Z","status":"ssl_error","status_checked_at":"2026-01-24T17:50:48.377Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["functional-style","node-js","node-module","solr","solr-client"],"created_at":"2024-10-11T13:32:45.653Z","updated_at":"2026-01-24T19:03:19.600Z","avatar_url":"https://github.com/vsimko.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-solr-lambda\n\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n\n## Features\n\n- functional-style API with jsdoc type annotations\n- plain javascipt in commonjs format - no additional build step required\n- ES6+ including async/await, lambdas, spread operator...\n- typechecking support in vscode (without compiling typescript code)\n- no runtime dependencies other than `axios`\n- as close as possible to the Solr Json-based REST API\n- functions for working with documents, fields, field types, cores\n\n## Example\n\n```js\nconst { prepareSolrClient } = require(\"node-solr-lambda\");\nconst solr = prepareSolrClient(\"mycore\");\n\nasync function myfun() {\n  const result = await solr.query({ query: \"label:something\" });\n  console.log(result);\n\n  await solr.addField({ name: \"price\", type: \"plong\", multiValued: false });\n  await solr.addField({\n    name: \"category\",\n    type: \"string\",\n    multiValued: true,\n    docValues: true\n  });\n\n  const item1 = { id: \"item1\", price: 123, category: [\"cpu\", \"ram\"] };\n  const item2 = { id: \"item2\", price: 456, category: [\"cpu\", \"usb\"] };\n  await solr.add(item1); // works with single object\n  await solr.add([item1, item2]); // works with object[]\n  await solr.commit()\n\n  await solr.query({\n    query: \"*:*\",\n    facet: {\n      top_5_categories: {\n        terms: {\n          field: \"category\",\n          limit: 5,\n          facet: {\n            avg_price: \"avg(price)\"\n          }\n        }\n      }\n    }\n  });\n}\n```\n\n## How to test\n\nWe provide a docker-compose with a solr instance for testing.\nThe testing solr instance needs to run first:\n```sh\n# run this in a separate terminal and shutdown using CTRL+C\nyarn test:prepare\n```\n\nNow you can run the test suite:\n```sh\nyarn test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsimko%2Fnode-solr-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvsimko%2Fnode-solr-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvsimko%2Fnode-solr-lambda/lists"}