{"id":18430685,"url":"https://github.com/kompiro/learning-opensearch","last_synced_at":"2025-04-13T22:45:19.451Z","repository":{"id":181900947,"uuid":"667633584","full_name":"kompiro/learning-opensearch","owner":"kompiro","description":"Opensearchの実験場","archived":false,"fork":false,"pushed_at":"2023-07-18T01:16:10.000Z","size":28,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T09:15:18.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/kompiro.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}},"created_at":"2023-07-18T01:03:54.000Z","updated_at":"2023-07-18T01:13:18.000Z","dependencies_parsed_at":"2023-07-18T02:49:40.448Z","dependency_job_id":null,"html_url":"https://github.com/kompiro/learning-opensearch","commit_stats":null,"previous_names":["kompiro/learning-opensearch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kompiro%2Flearning-opensearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kompiro%2Flearning-opensearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kompiro%2Flearning-opensearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kompiro%2Flearning-opensearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kompiro","download_url":"https://codeload.github.com/kompiro/learning-opensearch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248794566,"owners_count":21162613,"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":[],"created_at":"2024-11-06T05:21:58.848Z","updated_at":"2025-04-13T22:45:19.429Z","avatar_url":"https://github.com/kompiro.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Opensearchの実験場\n\n## これは何？\n\nOpensearchを利用する際に試した諸々を記録に残すためのリポジトリです。\n\n## 前提条件\n\nVSCode Devcontainer をセットアップ済みです。 Devcontainer で開くと下記のコンテナが自動で立ち上がります。\n\n### Opensearch環境\n\nクラスタモードで起動 \u0026 Opensearch Dashboard 付き\n\n- opensearch-node1\n- opensearch-node2\n- opensearch-dashboard\n\n### その他コンテナ\n\n- development: OpeansearchをいじるためののRails環境です。Railsである必然性はありません。\n- plantuml: 図等を執筆するために追加。\n\n## 試し方\n\nlib/tasks/opensearch.rake に index, document を生成するためのタスクを追加しています。\n\n```sh\nrails opensearch:info\n```\n\nで Opensearch が起動していることを確認してください。\n\nテストデータを作成しやすくなるよう、 faker gem も導入済みです。\n\n### index, document を生成する\n\n```sh\nrails opensearch:create_company_index\nrails opensearch:create_company_v2_index\nrails opensearch:create_employee_index\n```\n\n### index を削除する\n\n```sh\nrails opensearch:delete_indices\n```\n\n### query の実行結果を取得する\n\n```sh\nbundle ex ruby lib/learning.rb | jq .\n```\n\n### Opensearch Dashboard の使い方\n\n- admin / adminでログインができる\n- メニューから Opensearch Dashboards \u003e Discover を開くと検索ができる\n\n### 参考\n\n- [Opensearch gem](https://github.com/opensearch-project/opensearch-ruby/)\n- [faker gem](https://github.com/faker-ruby/faker)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkompiro%2Flearning-opensearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkompiro%2Flearning-opensearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkompiro%2Flearning-opensearch/lists"}