{"id":42462941,"url":"https://github.com/mottaquikarim/esquerydsl","last_synced_at":"2026-01-28T09:30:36.752Z","repository":{"id":40332682,"uuid":"321987888","full_name":"mottaquikarim/esquerydsl","owner":"mottaquikarim","description":"Safely create complex ES Search Queries via the Query DSL in golang","archived":false,"fork":false,"pushed_at":"2023-09-08T21:56:36.000Z","size":24,"stargazers_count":37,"open_issues_count":5,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-19T02:11:01.255Z","etag":null,"topics":["dsl","elasticsearch","go","golang","package","query-dsl"],"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/mottaquikarim.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":"2020-12-16T13:17:06.000Z","updated_at":"2024-05-22T04:04:22.000Z","dependencies_parsed_at":"2024-06-19T01:55:12.427Z","dependency_job_id":"09509781-272f-4bc6-8a7b-099ec1a8a50f","html_url":"https://github.com/mottaquikarim/esquerydsl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mottaquikarim/esquerydsl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mottaquikarim%2Fesquerydsl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mottaquikarim%2Fesquerydsl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mottaquikarim%2Fesquerydsl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mottaquikarim%2Fesquerydsl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mottaquikarim","download_url":"https://codeload.github.com/mottaquikarim/esquerydsl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mottaquikarim%2Fesquerydsl/sbom","scorecard":{"id":661328,"data":{"date":"2025-08-11","repo":{"name":"github.com/mottaquikarim/esquerydsl","commit":"2a15c9ace5b9b3f2a284e7a16f69c4dba8140018"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Code-Review","score":2,"reason":"Found 4/19 approved changesets -- score normalized to 2","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":"Maintained","score":0,"reason":"0 commit(s) and 0 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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/run-build.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":"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/run-build.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/mottaquikarim/esquerydsl/run-build.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/run-build.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/mottaquikarim/esquerydsl/run-build.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 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":"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":"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":"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 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"}},{"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"}}]},"last_synced_at":"2025-08-21T16:17:22.638Z","repository_id":40332682,"created_at":"2025-08-21T16:17:22.638Z","updated_at":"2025-08-21T16:17:22.638Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28843917,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T07:39:25.367Z","status":"ssl_error","status_checked_at":"2026-01-28T07:39:24.487Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["dsl","elasticsearch","go","golang","package","query-dsl"],"created_at":"2026-01-28T09:30:36.153Z","updated_at":"2026-01-28T09:30:36.744Z","avatar_url":"https://github.com/mottaquikarim.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![build](https://github.com/mottaquikarim/esquerydsl/workflows/Build%20Status/badge.svg) [![GoDoc](https://godoc.org/github.com/mottaquikarim/esquerydsl?status.svg)](https://godoc.org/github.com/mottaquikarim/esquerydsl) [![Go Report Card](https://goreportcard.com/badge/github.com/mottaquikarim/esquerydsl)](https://goreportcard.com/report/github.com/mottaquikarim/esquerydsl) [![Maintainability](https://api.codeclimate.com/v1/badges/0c5ab314f03a459ce286/maintainability)](https://codeclimate.com/github/mottaquikarim/esquerydsl/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/0c5ab314f03a459ce286/test_coverage)](https://codeclimate.com/github/mottaquikarim/esquerydsl/test_coverage)\n# [ES Query DSL](https://godoc.org/github.com/mottaquikarim/esquerydsl)\nStructs and marshal-ers that help wrangle writing elastic search queries using the [ES query DSL](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html) spec\n\n## Installation\n\n```bash\ngo get github.com/mottaquikarim/esquerydsl\n```\n\n## Usage\n\n(You can copy paste the snippet below into [playground](https://play.golang.org/) and see for yourself)\n\n```go\npackage main\n\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\n\t\"github.com/mottaquikarim/esquerydsl\"\n)\n\nfunc main() {\n\tbody, _ := json.Marshal(esquerydsl.QueryDoc{\n\t\tIndex: \"some_index\",\n\t\tSort:  []map[string]string{map[string]string{\"id\": \"asc\"}},\n\t\tAnd: []esquerydsl.QueryItem{\n\t\t\tesquerydsl.QueryItem{\n\t\t\t\tField: \"some_index_id\",\n\t\t\t\tValue: \"some-long-key-id-value\",\n\t\t\t\tType:  esquerydsl.Match,\n\t\t\t},\n\t\t},\n\t})\n\tfmt.Println(string(body))\n\t// {\"query\":{\"bool\":{\"must\":[{\"match\":{\"some_index_id\":\"some-long-key-id-value\"}}]}},\"sort\":[{\"id\":\"asc\"}]}\n}\n\n```\n\n(Please find additional examples in the unit tests)\n\n### MultiSearch Support\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/mottaquikarim/esquerydsl\"\n)\n\nfunc main() {\n\tdoc, _ := esquerydsl.MultiSearchDoc([]esquerydsl.QueryDoc{\n\t\tesquerydsl.QueryDoc{\n\t\t\tIndex: \"index1\",\n\t\t\tAnd: []esquerydsl.QueryItem{\n\t\t\t\tesquerydsl.QueryItem{\n\t\t\t\t\tField: \"user.id\",\n\t\t\t\t\tValue: \"kimchy!\",\n\t\t\t\t\tType:  esquerydsl.QueryString,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t\tesquerydsl.QueryDoc{\n\t\t\tIndex: \"index2\",\n\t\t\tAnd: []esquerydsl.QueryItem{\n\t\t\t\tesquerydsl.QueryItem{\n\t\t\t\t\tField: \"some_index_id\",\n\t\t\t\t\tValue: \"some-long-key-id-value\",\n\t\t\t\t\tType:  esquerydsl.Match,\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t})\n\tfmt.Println(doc)\n\t// OUTPUT:\n\n\t// {\"index\":\"index1\"}\n\t// {\"query\":{\"bool\":{\"must\":[{\"query_string\":{\"analyze_wildcard\":true,\"fields\":[\"user.id\"],\"query\":\"kimchy\\\\!\"}}]}}}\n\t// {\"index\":\"index2\"}\n\t// {\"query\":{\"bool\":{\"must\":[{\"match\":{\"some_index_id\":\"some-long-key-id-value\"}}]}}}\n\n\t// ...\n\t// eventually, pass this in like so:\n\n\t// request := esapi.MsearchRequest{\n\t//\tBody: strings.NewReader(doc),\n\t// }\n\n}\n\n```\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n### Run Tests\n\n```bash\nmake test\n```\n\n### Format\n\n```bash\nmake fmt\n```\n\n### Lint\n\n```bash\nmake lint\n```\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmottaquikarim%2Fesquerydsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmottaquikarim%2Fesquerydsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmottaquikarim%2Fesquerydsl/lists"}