{"id":20718650,"url":"https://github.com/os2web/os2web_search","last_synced_at":"2026-01-12T06:19:42.408Z","repository":{"id":57033290,"uuid":"264949257","full_name":"OS2web/os2web_search","owner":"OS2web","description":"Search functionality powered by SOLR","archived":false,"fork":false,"pushed_at":"2024-06-06T13:15:37.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-11T01:53:11.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/OS2web.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":"2020-05-18T13:33:31.000Z","updated_at":"2021-10-27T14:08:38.000Z","dependencies_parsed_at":"2024-05-02T12:00:54.202Z","dependency_job_id":"d7cc6e9c-bd09-4d10-9771-7117b129f31a","html_url":"https://github.com/OS2web/os2web_search","commit_stats":{"total_commits":29,"total_committers":4,"mean_commits":7.25,"dds":"0.27586206896551724","last_synced_commit":"810eafa99d1bae0b7edef6e5e59ee8d00b46dff4"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OS2web%2Fos2web_search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OS2web","download_url":"https://codeload.github.com/OS2web/os2web_search/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246399788,"owners_count":20770907,"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-17T03:14:23.106Z","updated_at":"2026-01-12T06:19:42.359Z","avatar_url":"https://github.com/OS2web.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"//TODO:\n1. Can only be installed when EN and DA are present\n2. required search_api_attachments\n3. change index mode (search index)\n\n\n# OS2Web Search Drupal module  [![Build Status](https://travis-ci.org/OS2web/os2web_search.svg?branch=master)](https://travis-ci.org/OS2web/os2web_nemlogin)\n\n## Module purpose\n\nThe aim of this module is to provide search functionality powered by SOLR.\n\n## How does it work\n\nAfter enabling search is available on the search page, as well as exposed form is added to 4 regions: **Megamenu - search**, **Header - search**, **Header - below** (front page only), **Content** (search page only).\n\nSearch page: ```/s```\n\n## Install\n\n1. Create the SOLR core. [Read manual](https://git.drupalcode.org/project/search_api_solr#setting-up-solr-single-core).\n\n1. Make sure you have both `english` and `danish` language in your installation `/admin/config/regional/language`.\n\n1. Module is available to download via composer.\n    ```\n    composer require os2web/os2web_search\n    drush en os2web_search\n    ```\n\n1. After activation finish the set up here: ```admin/config/search/search-api/server/os2web_search_server/edit```\n\n   The following fields need to be manually inserted:\n    - Solr host\n    - Solr core\n\n## Update\nUpdating process for OS2Web Nemlogin module is similar to usual Drupal 8 module.\nUse Composer's built-in command for listing packages that have updates available:\n\n```\ncomposer outdated os2web/os2web_search\n```\n\n## Synonyms activation\nIn order to use search synonyms for search those actions need to be done:\n\n1. Enable synonyms module:\n    ```\n    drush en search_api_synonym\n    ```\n1. Add some synonyms: ```admin/config/search/search-api-synonyms```\n1. Make sure your cron is running\n1. Copy the script ```os2web_search/scripts/synonyms_deploy.sh.example``` into any directory outside Drupal and execute it each time right after the cron.\n\n   Script requires those variables to be set:\n   * ```synonymdir=[path to synonyms]```\n\n        Full path to synonyms export folder location e.g. /var/www/os2web.dk/web/sites/default/files/synonyms/\n   * ```solrconfig=[path to SOLR core configuration]```\n\n        Full path to SOLR core config folder e.g. /opt/solr/server/solr/sik/conf/\n   * ```[SOLR Core]```\n\n        SOLR Core name\n\nThe script will work in the following way:\n* It checks the synonyms export location\n* If it has some files (matching the pattern), those files are moved to SOLR config location and renamed\n* After that the SOLR core is reloaded so that synonyms are active\n\n## Module translation\nModule's main language is English but Danish language is fully supported.\n\nWhen extending this module add your translations to the corresponding **\\*.po** files located ```modules/contrib/os2web_search/translations/``` and run the following to update translations:\n```\ndrush locale-check\ndrush locale-update \u0026\u0026 drush cr\n```\n\n## Automated testing and code quality\nSee [OS2Web testing and CI information](https://github.com/OS2Web/docs#testing-and-ci)\n\n## Contribution\n\nProject is opened for new features and os course bugfixes.\nIf you have any suggestion or you found a bug in project, you are very welcome\nto create an issue in github repository issue tracker.\nFor issue description there is expected that you will provide clear and\nsufficient information about your feature request or bug report.\n\n### Code review policy\nSee [OS2Web code review policy](https://github.com/OS2Web/docs#code-review)\n\n### Git name convention\nSee [OS2Web git name convention](https://github.com/OS2Web/docs#git-guideline)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fos2web%2Fos2web_search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fos2web%2Fos2web_search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fos2web%2Fos2web_search/lists"}