{"id":19291094,"url":"https://github.com/ongr-io/elasticsearchdsl","last_synced_at":"2025-05-14T18:02:30.633Z","repository":{"id":34185492,"uuid":"38037507","full_name":"ongr-io/ElasticsearchDSL","owner":"ongr-io","description":"Query DSL library for Elasticsearch","archived":false,"fork":false,"pushed_at":"2024-08-10T14:20:05.000Z","size":1125,"stargazers_count":461,"open_issues_count":56,"forks_count":203,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-05-13T13:09:45.018Z","etag":null,"topics":["dsl","elasticsearch","elasticsearch-php","elasticsearch-queries","php","php-library","standalone"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/ongr-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2015-06-25T08:27:27.000Z","updated_at":"2025-04-22T16:31:53.000Z","dependencies_parsed_at":"2023-11-15T09:05:31.522Z","dependency_job_id":"96ef2fb2-3b3b-416a-b7d2-dbd622e5ee0c","html_url":"https://github.com/ongr-io/ElasticsearchDSL","commit_stats":{"total_commits":723,"total_committers":64,"mean_commits":11.296875,"dds":0.7925311203319502,"last_synced_commit":"b4c3c8982bca497661139a1c2967a81f8f9bb9b6"},"previous_names":[],"tags_count":44,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ongr-io%2FElasticsearchDSL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ongr-io%2FElasticsearchDSL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ongr-io%2FElasticsearchDSL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ongr-io%2FElasticsearchDSL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ongr-io","download_url":"https://codeload.github.com/ongr-io/ElasticsearchDSL/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198453,"owners_count":22030964,"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","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","elasticsearch-php","elasticsearch-queries","php","php-library","standalone"],"created_at":"2024-11-09T22:23:45.380Z","updated_at":"2025-05-14T18:02:30.550Z","avatar_url":"https://github.com/ongr-io.png","language":"PHP","funding_links":["https://www.buymeacoffee.com/zIKBXRc"],"categories":[],"sub_categories":[],"readme":"# ElasticsearchDSL\n\nIntroducing Elasticsearch DSL library to provide objective query builder for [Elasticsearch bundle](https://github.com/ongr-io/ElasticsearchBundle) and [elasticsearch-php](https://github.com/elastic/elasticsearch-php) client. You can easily build any Elasticsearch query and transform it to an array.\n\nIf you need any help, [stack overflow](http://stackoverflow.com/questions/tagged/ongr)\nis the preferred and recommended way to ask ONGR support questions.\n \n[![Build Status](https://travis-ci.org/ongr-io/ElasticsearchDSL.svg?branch=master)](https://travis-ci.org/ongr-io/ElasticsearchDSL)\n[![codecov](https://codecov.io/gh/ongr-io/ElasticsearchDSL/branch/master/graph/badge.svg)](https://codecov.io/gh/ongr-io/ElasticsearchDSL)\n[![Latest Stable Version](https://poser.pugx.org/ongr/elasticsearch-dsl/v/stable)](https://packagist.org/packages/ongr/elasticsearch-dsl)\n[![Total Downloads](https://poser.pugx.org/ongr/elasticsearch-dsl/downloads)](https://packagist.org/packages/ongr/elasticsearch-dsl)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/ongr-io/ElasticsearchDSL/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/ongr-io/ElasticsearchDSL/?branch=master)\n\n\nIf you like this library, help me to develop it by buying a cup of coffee\n\n\u003ca href=\"https://www.buymeacoffee.com/zIKBXRc\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;\" \u003e\u003c/a\u003e\n\n## Version matrix\n\n| Elasticsearch version | ElasticsearchDSL version    |\n| --------------------- | --------------------------- |\n| \u003e= 7.0                | \u003e= 7.0                      |\n| \u003e= 6.0, \u003c 7.0         | \u003e= 6.0                      |\n| \u003e= 5.0, \u003c 6.0         | \u003e= 5.0                      |\n| \u003e= 2.0, \u003c 5.0         | \u003e= 2.0 (not supported)      |\n| \u003e= 1.0, \u003c 2.0         | 1.x (not supported)         |\n| \u003c= 0.90.x             | not supported               |\n\n## Documentation\n\n[The online documentation of the bundle is here](docs/index.md)\n\n## Try it!\n\n### Installation\n\nInstall library with [composer](https://getcomposer.org):\n\n```bash\n$ composer require ongr/elasticsearch-dsl\n```\n\n\u003e [elasticsearch-php](https://github.com/elastic/elasticsearch-php) client is defined in the composer requirements, no need to install it.\n\n### Search\n\nElasticsearch DSL was extracted from [Elasticsearch Bundle](https://github.com/ongr-io/ElasticsearchBundle) to provide standalone query dsl for [elasticsearch-php](https://github.com/elastic/elasticsearch-php). Examples how to use it together with [Elasticsearch Bundle](https://github.com/ongr-io/ElasticsearchBundle) can be found in the [Elasticsearch Bundle docs](https://github.com/ongr-io/ElasticsearchBundle/blob/master/Resources/doc/search.md).\n\nIf you dont want to use Symfony or Elasticsearch bundle, no worries, you can use it in any project together with [elasticsearch-php](https://github.com/elastic/elasticsearch-php). Here's the example:\n\nIf you are using Symfony there is also the [ElasticsearchBundle](https://github.com/ongr-io/ElasticsearchBundle)\nwhich provides full integration with Elasticsearch DSL.\n\nThe library is standalone and is not coupled with any framework. You can use it in any PHP project, the only\nrequirement is composer.  Here's the example:\n\nCreate search:\n\n```php\n \u003c?php\n  require 'vendor/autoload.php'; //Composer autoload\n\n  $client = ClientBuilder::create()-\u003ebuild(); //elasticsearch-php client\n  \n  $matchAll = new ONGR\\ElasticsearchDSL\\Query\\MatchAllQuery();\n  \n  $search = new ONGR\\ElasticsearchDSL\\Search();\n  $search-\u003eaddQuery($matchAll);\n  \n  $params = [\n    'index' =\u003e 'your_index',\n    'body' =\u003e $search-\u003etoArray(),\n  ];\n  \n  $results = $client-\u003esearch($params);\n```\n\nElasticsearch DSL covers every elasticsearch query, all examples can be found in [the documentation](docs/index.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fongr-io%2Felasticsearchdsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fongr-io%2Felasticsearchdsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fongr-io%2Felasticsearchdsl/lists"}