{"id":21029892,"url":"https://github.com/kitconcept/kitconcept.recipe.solr","last_synced_at":"2025-03-13T19:24:16.730Z","repository":{"id":45253370,"uuid":"124217135","full_name":"kitconcept/kitconcept.recipe.solr","owner":"kitconcept","description":"Buildout recipe for Solr","archived":false,"fork":false,"pushed_at":"2021-12-27T22:12:52.000Z","size":106,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-09T23:32:08.945Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/kitconcept.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.txt","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-07T10:09:49.000Z","updated_at":"2021-12-27T22:12:29.000Z","dependencies_parsed_at":"2022-08-30T17:10:56.497Z","dependency_job_id":null,"html_url":"https://github.com/kitconcept/kitconcept.recipe.solr","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fkitconcept.recipe.solr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fkitconcept.recipe.solr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fkitconcept.recipe.solr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fkitconcept.recipe.solr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kitconcept","download_url":"https://codeload.github.com/kitconcept/kitconcept.recipe.solr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243466987,"owners_count":20295310,"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-19T12:14:54.397Z","updated_at":"2025-03-13T19:24:16.703Z","avatar_url":"https://github.com/kitconcept.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Introduction\n============\n\n.. image:: https://github.com/kitconcept/kitconcept.recipe.solr/actions/workflows/tests.yml/badge.svg\n    :target: https://github.com/kitconcept/kitconcept.recipe.solr/actions/workflows/tests.yml\n\n|\n\n.. image:: https://raw.githubusercontent.com/kitconcept/kitconcept.recipe.solr/master/kitconcept.png\n   :alt: kitconcept\n   :target: https://kitconcept.com/\n\n\nBuildout recipe for Solr.\n\nSupported options\n=================\n\nThe recipe supports the following options:\n\nsrc (required)\n    Source of the Solr download (e.g. \"http://archive.apache.org/dist/lucene/solr/7.7.2/solr-7.7.2.zip\").\n\nport (default: 8983)\n    Solr port\n\nsolr-config\n    Path to a Solr configuration directory that contains a \"core.properties\" file and a \"data\" and \"conf\" directory.\n\nsolr-core-name (default: plone)\n    Name of the Solr core. Default is 'plone'.\n\nExample usage\n=============\n\nMinimal Buildout\n----------------\n\nWe'll start by creating a minimal buildout that uses the recipe::\n\n    \u003e\u003e\u003e write('buildout.cfg',\n    ... \"\"\"\n    ... [buildout]\n    ... parts = solr\n    ...\n    ... [solr]\n    ... recipe = kitconcept.recipe.solr\n    ... src = %(src)s\n    ... \"\"\" % {\n    ...     'src' : 'http://archive.apache.org/dist/lucene/solr/7.7.2/solr-7.7.2.zip',\n    ... })\n\nThe only required attribute is `src` that contains a URL of the Solr tgz file.\n\nRunning the buildout gives us::\n\n    \u003e\u003e\u003e buildout_output_lower = system(buildout).lower()\n    \u003e\u003e\u003e \"installing solr\" in buildout_output_lower\n    True\n    \u003e\u003e\u003e import os\n    \u003e\u003e\u003e current_path = os.path.dirname(os.path.realpath(__file__))\n    \u003e\u003e\u003e full_path = os.path.join(current_path, 'parts/solr/bin/solr')\n    \u003e\u003e\u003e os.path.exists(full_path)\n    True\n\n    \u003e\u003e\u003e full_path = os.path.join(current_path, 'parts/solr/server/solr/plone')\n    \u003e\u003e\u003e os.path.exists(full_path)\n    True\n\n\nComplete Buildout\n-----------------\n\nWe'll start by creating a buildout that uses the recipe::\n\n    \u003e\u003e\u003e write('buildout.cfg',\n    ... \"\"\"\n    ... [buildout]\n    ... parts = solr\n    ...\n    ... [solr]\n    ... recipe = kitconcept.recipe.solr\n    ... src = %(src)s\n    ... port = %(port)s\n    ... solr-config = %(solr-config)s\n    ... solr-core-name = %(solr-core-name)s\n    ... \"\"\" % {\n    ...     'src' : 'http://archive.apache.org/dist/lucene/solr/7.7.2/solr-7.7.2.zip',\n    ...     'port' : '8983',\n    ...     'solr-config': 'config',\n    ...     'solr-core-name': 'solr-core-plone',\n    ... })\n\nRunning the buildout gives us::\n\n    \u003e\u003e\u003e buildout_output_lower = system(buildout).lower()\n    \u003e\u003e\u003e \"installing solr\" in buildout_output_lower\n    True\n    \u003e\u003e\u003e import os\n    \u003e\u003e\u003e current_path = os.path.dirname(os.path.realpath(__file__))\n    \u003e\u003e\u003e full_path = os.path.join(current_path, 'parts/solr/bin/solr')\n    \u003e\u003e\u003e os.path.exists(full_path)\n    True\n\n    \u003e\u003e\u003e full_path = os.path.join(current_path, 'parts/solr/server/solr/plone')\n    \u003e\u003e\u003e os.path.exists(full_path)\n    True\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitconcept%2Fkitconcept.recipe.solr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkitconcept%2Fkitconcept.recipe.solr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitconcept%2Fkitconcept.recipe.solr/lists"}