{"id":13560111,"url":"https://github.com/confact/elasticsearch-codeigniter-library","last_synced_at":"2026-01-10T05:46:53.210Z","repository":{"id":10078856,"uuid":"12135190","full_name":"confact/elasticsearch-codeigniter-library","owner":"confact","description":"A small library to make search queries and create and add indexes.","archived":true,"fork":false,"pushed_at":"2019-12-28T17:33:11.000Z","size":10,"stargazers_count":53,"open_issues_count":5,"forks_count":52,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-02T00:52:06.898Z","etag":null,"topics":["elasticsearch","php"],"latest_commit_sha":null,"homepage":null,"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/confact.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}},"created_at":"2013-08-15T13:38:25.000Z","updated_at":"2024-08-10T10:35:32.000Z","dependencies_parsed_at":"2022-09-12T13:31:36.417Z","dependency_job_id":null,"html_url":"https://github.com/confact/elasticsearch-codeigniter-library","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/confact%2Felasticsearch-codeigniter-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/confact%2Felasticsearch-codeigniter-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/confact%2Felasticsearch-codeigniter-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/confact%2Felasticsearch-codeigniter-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/confact","download_url":"https://codeload.github.com/confact/elasticsearch-codeigniter-library/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247027961,"owners_count":20871630,"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":["elasticsearch","php"],"created_at":"2024-08-01T13:00:37.785Z","updated_at":"2026-01-10T05:46:53.143Z","avatar_url":"https://github.com/confact.png","language":"PHP","readme":"elasticsearch-codeigniter-library\n=================================\n\nA small library to make search queries and create and add indexes.\n\n\n## How to index data with the library\nYou create data in an array to pass it to elasticsearch. You probably want to specify the Key for the document and show the result. Like this:\n\n\t$id = 1337;\n\t$data = array(\"name\"=\u003e\"nisse\", \"age\"=\u003e\"14\", \"sex\"=\u003e\"male\");\n\tvar_dump($this-\u003eelasticsearch-\u003eadd(\"people\", $id, $data));\n\t\nThis will save the array to the elasticsearch. \"people\" is the collection, the index where you want to save it.\n\n# CRUD Operations\n\n## CREATE\n\t$id = 1337;\n\t$data = array(\"name\"=\u003e\"nisse\", \"age\"=\u003e\"14\", \"sex\"=\u003e\"male\");\n\t$return = $this-\u003eelasticsearch-\u003eadd(\"people\", $id, $data);\n\n## READ\n\t$id = 1337;\n\t$this-\u003eelasticsearch-\u003eget(\"people\", $id);\n\n## UPDATE\n\t$id = 1337;\n\t$data = array(\n\t\t\"id\" =\u003e $id,\n\t\t\"name\"=\u003e\"nisse\", \n\t\t\"age\"=\u003e\"14\", \n\t\t\"sex\"=\u003e\"male\"\n\t);\n\t$return = $this-\u003eelasticsearch-\u003eadd(\"people\", $id, $data);\n\n## DELETE\n\t$id = 1337;\n\t$this-\u003eelasticsearch-\u003edelete(\"people\", $id);\n","funding_links":[],"categories":["Libraries","Search"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconfact%2Felasticsearch-codeigniter-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconfact%2Felasticsearch-codeigniter-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconfact%2Felasticsearch-codeigniter-library/lists"}