{"id":16059029,"url":"https://github.com/andyatkinson/search-api-service","last_synced_at":"2026-05-02T05:39:40.943Z","repository":{"id":66952284,"uuid":"219595173","full_name":"andyatkinson/search-api-service","owner":"andyatkinson","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-04T20:58:07.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-04-21T00:09:36.109Z","etag":null,"topics":["elasticsearch","golang"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/andyatkinson.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":"2019-11-04T20:56:53.000Z","updated_at":"2024-06-19T07:39:10.183Z","dependencies_parsed_at":null,"dependency_job_id":"73687e21-a8b2-464b-ab4b-aa6417d4b39f","html_url":"https://github.com/andyatkinson/search-api-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyatkinson%2Fsearch-api-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyatkinson%2Fsearch-api-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyatkinson%2Fsearch-api-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andyatkinson%2Fsearch-api-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andyatkinson","download_url":"https://codeload.github.com/andyatkinson/search-api-service/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305946,"owners_count":20917208,"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","golang"],"created_at":"2024-10-09T03:41:31.404Z","updated_at":"2026-05-02T05:39:35.897Z","avatar_url":"https://github.com/andyatkinson.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Search API\n\nCopied from source article: \u003chttps://outcrawl.com/go-elastic-search-service\u003e\n\n\n```\nUpload a couple of fake documents, for example, documents found inside fake-data.json file.\n\n$ curl -X POST http://localhost:8080/documents -d @fake-data.json -H \"Content-Type: application/json\"\nTry it out.\n\n$ curl http://localhost:8080/search?query=exercitation+est+officia\n{\n  \"time\": \"42\",\n  \"hits\": \"43\",\n  \"documents\": [{\n      \"title\": \"Exercitation est officia fugiat labore deserunt est id voluptate magna.\",\n      \"created_at\": \"2018-03-21T15:22:48.7830606Z\",\n      \"content\": \"...\"\n    },\n    // ...\n  ]\n}\n```\n\n### Docker\n\n#### Docker up\n\n`docker-compose up -d --build`\n\n```\n-d        # Detached mode\n--build   # Build images before starting containers\n```\n\n#### Stop container\n\n`docker ps`\n`docker stop search_api`\n`docker stop elasticsearch`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyatkinson%2Fsearch-api-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandyatkinson%2Fsearch-api-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandyatkinson%2Fsearch-api-service/lists"}