{"id":16394417,"url":"https://github.com/jasonstitt/elasticsearch-score-bitset","last_synced_at":"2026-04-16T00:32:45.122Z","repository":{"id":147968069,"uuid":"276251430","full_name":"jasonstitt/elasticsearch-score-bitset","owner":"jasonstitt","description":"Example to accompany \"Elasticsearch mapreduce aggregations that correlate multiple queries\"","archived":false,"fork":false,"pushed_at":"2020-07-01T02:11:10.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-25T06:47:19.934Z","etag":null,"topics":["elasticsearch","example","mapreduce","performance"],"latest_commit_sha":null,"homepage":"https://jasonstitt.com/elasticsearch-mapreduce-multiple-queries","language":"Groovy","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/jasonstitt.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2020-07-01T01:54:15.000Z","updated_at":"2021-10-29T20:42:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"2464b614-f3cf-49b9-8a62-e51cd3ed7a00","html_url":"https://github.com/jasonstitt/elasticsearch-score-bitset","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jasonstitt/elasticsearch-score-bitset","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonstitt%2Felasticsearch-score-bitset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonstitt%2Felasticsearch-score-bitset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonstitt%2Felasticsearch-score-bitset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonstitt%2Felasticsearch-score-bitset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasonstitt","download_url":"https://codeload.github.com/jasonstitt/elasticsearch-score-bitset/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonstitt%2Felasticsearch-score-bitset/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31866345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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":["elasticsearch","example","mapreduce","performance"],"created_at":"2024-10-11T04:55:36.796Z","updated_at":"2026-04-16T00:32:45.089Z","avatar_url":"https://github.com/jasonstitt.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example code for Elasticsearch score bitsets\n\nThis is the example to accompany \"[Elasticsearch mapreduce aggregations that correlate multiple queries](https://jasonstitt.com/elasticsearch-mapreduce-multiple-queries)\", showing you how to manipulate Lucene scores and scripted metric aggregations in Elasticsearch to efficiently obtain aggregates that compare or correlate multiple subqueries.\n\nThis is a flexible technique that can be used in various ways. The example here is simplistic and looks at one possible question, which is \"how many documents match each of the subqueries but don't match any others\". The example has only 3 simple subqueries, but I have used this approach in production with up to 20 very complex subqueries.\n\nPlease see the linked article and the comments in the source files for more explanation of what's happening.\n\n## Usage\n\nTo just run the example:\n\n```\npip3 install -r requirements.txt\n./bin/start_server.sh\n./bin/wait.py\n./bin/sample_data.py\n./bin/deploy_scripts.py\n./bin/run_query.py\n```\n\nTo clean up:\n\n```\n./bin/stop_server.sh\n```\n\n## Dependencies\n\n* Docker\n* Python 3\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonstitt%2Felasticsearch-score-bitset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonstitt%2Felasticsearch-score-bitset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonstitt%2Felasticsearch-score-bitset/lists"}