{"id":21029873,"url":"https://github.com/kitconcept/volto-solr","last_synced_at":"2025-04-28T12:44:37.122Z","repository":{"id":178392865,"uuid":"586956379","full_name":"kitconcept/volto-solr","owner":"kitconcept","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-07T11:04:55.000Z","size":1681,"stargazers_count":1,"open_issues_count":9,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-09T23:32:11.464Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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.md","changelog":"CHANGELOG.md","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":"2023-01-09T16:18:24.000Z","updated_at":"2024-09-19T10:06:22.000Z","dependencies_parsed_at":"2024-04-16T12:28:34.960Z","dependency_job_id":"1d9f8ed0-9ddd-4293-81ad-5ba7fe79f06e","html_url":"https://github.com/kitconcept/volto-solr","commit_stats":null,"previous_names":["kitconcept/volto-solr"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fvolto-solr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fvolto-solr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fvolto-solr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kitconcept%2Fvolto-solr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kitconcept","download_url":"https://codeload.github.com/kitconcept/volto-solr/tar.gz/refs/heads/main","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:47.831Z","updated_at":"2025-03-13T19:24:14.898Z","avatar_url":"https://github.com/kitconcept.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Volto Solr Plone Add-on\n\nThis add-on enhances Plone (Volto) with a Solr-based full-text search.\n\nThis package has to be used together with the [`kitconcept.solr`](https://github.com/kitconcept/kitconcept.solr) back-end package.\n\n# Installation\n\nGo to your Volto frontend package and run:\n\n```\nyarn add @kitconcept/volto-solr\n```\n\n## Configuration\n\nThe configuration is provided by default and can be overwritten from any package.\n\n\n### Result type templates\n\nThe search results are rendered by default components, which are customizable.\n\nThe `config.views.contentTypeSearchResultViews` object contains a mapping from type name to the component that renders them. These can be overridden, and renderer components for new types can be added as well.\n\nAdditionally. the `config.views.contentTypeSearchResultDefaultView` defines the component that is used as a default renderer for all the result types not specified in `config.views.contentTypeSearchResultViews`.\n\n```js\n  // View mapper can be specified here. with the desired type rendererers.\n  // The default view applies for all content types not in the array.\n  // Or just use the built in mapper.\n  config.views.contentTypeSearchResultViews = {\n    Event: searchResultItems.EventResultItem,\n    Image: searchResultItems.ImageResultItem,\n    'News Item': searchResultItems.NewsItemResultItem,\n  };\n  config.views.contentTypeSearchResultDefaultView =\n    searchResultItems.DefaultResultItem;\n```\n\n### Result type icons\n\nIn addition to the result type templates, it's also possible to use which icon to use to represent any specific result icon.\n\n`config.settings.contentTypeSearchResultIcons` is a mapping from content type name to the icon to use for the content type. In addition, `config.settings.contentTypeSearchResultDefaultIcon` specifies a fallback to be used for any content type not found in the mapping (and functions as a default).\n\nconfig.settings.contentTypeSearchResultIcons is by default populated from `config.settings.contentIcons` which is usually the right thing to do. The following example uses these settings, but also defines specific icons for some specific content types.\n\nAll supported content type templates respect these settings, so an icon for a content type can be redefined without the need to redefine the entire template, if otherwise no other changes are needed.\n\n```js\n  // Icon types. This will be in effect with all supported\n  // content type templates.\n  config.settings.contentTypeSearchResultIcons = {\n    ...config.settings.contentIcons,\n    Event: calendarSVG,\n    Image: imageSVG,\n    'News Item': newsSVG,\n  };\n  config.settings.contentTypeSearchResultDefaultIcon = fileSVG;\n```\n\n### Other options\n\nThe rest of the options provide the baselines for the package and the `Search` compoment to work. You can override various components via these options, including the `Search` component and the underlying reducers and actions that it uses. There is currently no supported use case for this, so please refer to the source code if you wish to do this. You most likely won't need to do this.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitconcept%2Fvolto-solr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkitconcept%2Fvolto-solr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitconcept%2Fvolto-solr/lists"}