{"id":18044671,"url":"https://github.com/groonga/heroku-buildpack-rroonga","last_synced_at":"2025-10-24T17:43:17.590Z","repository":{"id":17354870,"uuid":"20126456","full_name":"groonga/heroku-buildpack-rroonga","owner":"groonga","description":"Heroku buildpack for Rroonga.","archived":false,"fork":false,"pushed_at":"2016-02-23T01:41:34.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-05T03:27:21.725Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/groonga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-24T09:42:41.000Z","updated_at":"2016-02-21T02:55:07.000Z","dependencies_parsed_at":"2022-09-10T09:22:09.197Z","dependency_job_id":null,"html_url":"https://github.com/groonga/heroku-buildpack-rroonga","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/groonga/heroku-buildpack-rroonga","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groonga%2Fheroku-buildpack-rroonga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groonga%2Fheroku-buildpack-rroonga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groonga%2Fheroku-buildpack-rroonga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groonga%2Fheroku-buildpack-rroonga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/groonga","download_url":"https://codeload.github.com/groonga/heroku-buildpack-rroonga/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/groonga%2Fheroku-buildpack-rroonga/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278708204,"owners_count":26031969,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-30T18:10:15.008Z","updated_at":"2025-10-07T02:23:34.593Z","avatar_url":"https://github.com/groonga.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Heroku buildpack: Rroonga\n\nThis is a Heroku buildpack of [Rroonga](http://ranguba.org/#about-rroonga).\n\n## Usage\n\n    heroku apps:create --buildpack https://codon-buildpacks.s3.amazonaws.com/buildpacks/groonga/groonga.tgz\n    heroku buildpacks:add heroku/ruby\n    heroku buildpacks:add https://codon-buildpacks.s3.amazonaws.com/buildpacks/groonga/rroonga.tgz\n\nAdd `rroonga` entry to your `Gemfile`:\n\n    gem \"rroonga\"\n\nCreate `groonga/init.rb` that initializes your Groonga database. You\ncan refer your Groonga database path by\n`ENV[\"GROONGA_DATABASE_PATH\"]`.\n\nHere is a sample `groonga/init.rb`:\n\n```ruby\nrequire \"groonga\"\n\nGroonga::Database.open(ENV[\"GROONGA_DATABASE_PATH\"])\n\n# Define schema\nGroonga::Schema.define do |schema|\n  schema.create_table(\"Sites\",\n                      :type =\u003e :hash,\n                      :key_type =\u003e :short_text) do |table|\n    table.short_text(\"title\")\n    table.text(\"description\")\n  end\nend\n\n# Add data\nsites = Groonga[\"Sites\"]\nsites.add(\"http://www.ruby-lang.org/\",\n          :title =\u003e \"Ruby Programming Language\",\n          :description =\u003e \"The official Web site of Ruby.\")\nsites.add(\"http://groonga.org/\",\n          :title =\u003e \"Groonga - An open-source fulltext search engine and column store\",\n          :description =\u003e \"The official Web site of Groonga.\")\n\n# Create indexes. We can use offline index construction by creating indexes\n# after we add data. Offline index construction is 10 times faster rather\n# than online index construction.\n#\n# See also:\n#   * Online index construction: http://groonga.org/docs/reference/indexing.html#online-index-construction\n#   * Offline index construction: http://groonga.org/docs/reference/indexing.html#offline-index-construction\nGroonga::Schema.define do |schema|\n  schema.create_table(\"Terms\",\n                      :type =\u003e :patricia_trie,\n                      :key_type =\u003e :short_text,\n                      :normalizer =\u003e \"NormalizerAuto\",\n                      :default_tokenizer =\u003e \"TokenBigram\") do |table|\n    table.index(\"Sites.title\")\n    table.index(\"Sites.description\")\n  end\nend\n```\n\nThen push them to Heroku.\n\n    git push heroku master\n\n## Advanced usage\n\nThis buildpack expects to Groonga database is created at\n`ENV[\"GROONGA_DATABASE_PATH\"]` by default. But you can use different\npath for your Groonga database. You can use `ENV[\"GROONGA_BASE_PATH\"]`\nto determine your Groonga database path. `ENV[\"GROONGA_BASE_PATH\"]`\nhas a directory path that should be placed Groonga related files.\n\nExample:\n\n```ruby\n# groonga/init.rb\n\nrequire \"groonga\"\n\nmy_custom_database_path = File.join(ENV[\"GROONGA_BASE_PATH\"], \"my-database\")\nGroonga::Database.open(my_custom_database_path)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgroonga%2Fheroku-buildpack-rroonga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgroonga%2Fheroku-buildpack-rroonga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgroonga%2Fheroku-buildpack-rroonga/lists"}