{"id":18517556,"url":"https://github.com/stevenferrer/solr-go","last_synced_at":"2026-01-12T02:56:51.080Z","repository":{"id":53446881,"uuid":"252151798","full_name":"stevenferrer/solr-go","owner":"stevenferrer","description":"A Solr client for Go.","archived":false,"fork":false,"pushed_at":"2025-02-17T12:42:30.000Z","size":200,"stargazers_count":47,"open_issues_count":3,"forks_count":13,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-25T22:04:14.129Z","etag":null,"topics":["go","golang","multi-select-facet","solr","solr-client"],"latest_commit_sha":null,"homepage":"","language":"Go","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/stevenferrer.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,"zenodo":null}},"created_at":"2020-04-01T11:10:17.000Z","updated_at":"2025-03-19T11:21:35.000Z","dependencies_parsed_at":"2024-05-08T06:26:27.695Z","dependency_job_id":"775ca690-aeef-4903-8686-acfe355ead95","html_url":"https://github.com/stevenferrer/solr-go","commit_stats":null,"previous_names":["stevenferrer/helios","sf9v/solr-go"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/stevenferrer/solr-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenferrer%2Fsolr-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenferrer%2Fsolr-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenferrer%2Fsolr-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenferrer%2Fsolr-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevenferrer","download_url":"https://codeload.github.com/stevenferrer/solr-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevenferrer%2Fsolr-go/sbom","scorecard":{"id":852502,"data":{"date":"2025-08-11","repo":{"name":"github.com/stevenferrer/solr-go","commit":"ae44b0434939720934f9035bbbe65bcecae51a72"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 3/20 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/stevenferrer/solr-go/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/stevenferrer/solr-go/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/stevenferrer/solr-go/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/stevenferrer/solr-go/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/stevenferrer/solr-go/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/stevenferrer/solr-go/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/stevenferrer/solr-go/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/stevenferrer/solr-go/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/stevenferrer/solr-go/test.yml/main?enable=pin","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 16 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T22:54:00.401Z","repository_id":53446881,"created_at":"2025-08-23T22:54:00.401Z","updated_at":"2025-08-23T22:54:00.401Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272612176,"owners_count":24964388,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["go","golang","multi-select-facet","solr","solr-client"],"created_at":"2024-11-06T17:04:35.446Z","updated_at":"2026-01-12T02:56:51.055Z","avatar_url":"https://github.com/stevenferrer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solr-Go\n\n![Github Actions](https://github.com/stevenferrer/solr-go/workflows/test/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/stevenferrer/solr-go/badge.svg?branch=main)](https://coveralls.io/github/stevenferrer/solr-go?branch=main)\n[![Go Report Card](https://goreportcard.com/badge/github.com/stevenferrer/solr-go)](https://goreportcard.com/report/github.com/stevenferrer/solr-go)\n[![GoDoc](https://pkg.go.dev/badge/github.com/stevenferrer/solr-go)](https://pkg.go.dev/github.com/stevenferrer/solr-go)\n\nA [Solr](https://solr.apache.org/) client for [Go](https://golang.org/).\n\n## Installation\n\n```console\n$ go get github.com/stevenferrer/solr-go\n```\n\n## Example\n\n```go\nimport (\n    \"github.com/stevenferrer/solr-go\"\n)\n\n...\n\n// Create a client\nbaseURL := \"http://solr.example.com\"\nclient := solr.NewJSONClient(baseURL)\n\n// Create a query\nquery := solr.NewQuery(solr.NewDisMaxQueryParser().\n        Query(\"'solr rocks'\").BuildParser()).\n    Queries(solr.M{\n        \"query_filters\": []solr.M{\n            {\n                \"#size_tag\": solr.M{\n                    \"field\": solr.M{\n                        \"f\":     \"size\",\n                        \"query\": \"XL\",\n                    },\n                },\n            },\n            {\n                \"#color_tag\": solr.M{\n                    \"field\": solr.M{\n                        \"f\":     \"color\",\n                        \"query\": \"Red\",\n                    },\n                },\n            },\n        },\n    }).\n    Facets(\n        solr.NewTermsFacet(\"categories\").\n            Field(\"cat\").Limit(10),\n        solr.NewQueryFacet(\"high_popularity\").\n            Query(\"popularity:[8 TO 10]\"),\n    ).\n    Params(solr.M{\n        \"spellcheck.q\": \"solr rocks\",\n    }).\n    Sort(\"score\").\n    Offset(1).\n    Limit(10).\n    Filters(\"inStock:true\").\n    Fields(\"name\", \"price\")\n\n// Send the query\nqueryResponse, err := client.Query(context.Background(), \"techproducts\", query)\n```\n\nSee [integration test](integration_test.go) for a more complete example.\n\n## Supported APIs\n\n- [Collections API](https://solr.apache.org/guide/8_8/collections-api.html) - Create and delete collection.\n- [Core Admin API](https://solr.apache.org/guide/8_8/coreadmin-api.html) - [Create](https://issues.apache.org/jira/browse/SOLR-7316), delete and check core status.\n- [Query API](https://solr.apache.org/guide/8_8/json-request-api.html) - Query via the JSON request API.\n  - [Facet API](https://solr.apache.org/guide/8_8/json-facet-api.html) - Terms and query facet.\n- [Update API](https://solr.apache.org/guide/8_8/uploading-data-with-index-handlers.html#uploading-data-with-index-handlers) - JSON formatted index updates.\n- [Schema API](https://solr.apache.org/guide/8_8/schema-api.html) - Modify schema fields, dynamic fields, copy fields and field types.\n- [Config API](https://solr.apache.org/guide/8_8/config-api.html) - Modify config properties and update components.\n- [Suggester API](https://solr.apache.org/guide/8_8/suggester.html) - Auto-suggest/type-ahead via suggester component.\n\n## Other features\n\n- [Basic auth support](https://solr.apache.org/guide/8_8/basic-authentication-plugin.html#basic-authentication-plugin) - Interacting with a Solr server that uses the basic authentication plugin.\n\n## Projects using it\n\n- [Multi-select facet using Solr, Vue and Go](https://github.com/stevenferrer/multi-select-facet)\n\n## A (minor) word of caution\n\nKeep in mind that this library is still evolving and will likely have some breaking changes until v1.0. We will try our best to keep the breaking changes minimal.\n\n## Supporting the project\n\nYou can support the project in the following ways:\n\n- Give it a [star](https://github.com/stevenferrer/solr-go/stargazers), it's free!\n- Write some tutorials\n- Use it your projects\n\n## Contributing\n\nPlease feel free to improve this project by [opening an issue](https://github.com/stevenferrer/solr-go/issues/new) or by [making a pull-request](https://github.com/stevenferrer/solr-go/pulls).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenferrer%2Fsolr-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevenferrer%2Fsolr-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevenferrer%2Fsolr-go/lists"}