{"id":19592091,"url":"https://github.com/catalyst/moodle-search_postgresfulltext","last_synced_at":"2025-06-19T07:38:07.139Z","repository":{"id":25208812,"uuid":"103452739","full_name":"catalyst/moodle-search_postgresfulltext","owner":"catalyst","description":"Moodle search engine implemented using Postgres full text indexing","archived":false,"fork":false,"pushed_at":"2025-04-13T21:40:43.000Z","size":60,"stargazers_count":2,"open_issues_count":0,"forks_count":7,"subscribers_count":23,"default_branch":"main","last_synced_at":"2025-04-13T22:36:26.631Z","etag":null,"topics":["moodle","moodle-plugin","moodle-search","postgres","tika"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/catalyst.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2017-09-13T21:28:27.000Z","updated_at":"2025-04-13T21:40:47.000Z","dependencies_parsed_at":"2025-04-15T10:15:50.949Z","dependency_job_id":null,"html_url":"https://github.com/catalyst/moodle-search_postgresfulltext","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fmoodle-search_postgresfulltext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fmoodle-search_postgresfulltext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fmoodle-search_postgresfulltext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catalyst%2Fmoodle-search_postgresfulltext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catalyst","download_url":"https://codeload.github.com/catalyst/moodle-search_postgresfulltext/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251154694,"owners_count":21544543,"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":["moodle","moodle-plugin","moodle-search","postgres","tika"],"created_at":"2024-11-11T08:33:04.885Z","updated_at":"2025-04-27T14:33:37.515Z","avatar_url":"https://github.com/catalyst.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Moodle Global Search - Postgres Full-Text Search Backend\n\nThis plugin allows Moodle to use Postgres full-text indexing as a backend for Moodle's global search.\n\nThe following features are provided by this plugin:\n\n* File indexing (using Apache Tika)\n* Search result ranking\n* Search term highlighting\n* Group support (new in Moodle 3.5)\n* Ordering by course and context (new in Moodle 3.5)\n\n## Supported Moodle Versions\nThis plugin currently supports Moodle:\n\n* 3.1\n* 3.4\n* 3.5\n* 3.6\n* 3.9\n* 4.0\n\n## Requirements\n\nMoodle must use Postgres as its database. MySQL and other databases types are not supported by this plugin.\n\n\n## Installation\n**NOTE:** Complete all of these steps before trying to enable the Global Search functionality in Moodle:\n\n1. Get the code and copy/ install it to: `\u003cmoodledir\u003e/search/engine/postgresfulltext`\n2. Run the upgrade: `sudo -u www-data php admin/cli/upgrade.php` **Note:** the user may be different to www-data on your system.\n3. Enable Global search in *Site administration \u003e Advanced features*\n\n\n\n## File Indexing Support\nThis plugin uses [Apache Tika](https://tika.apache.org/) for file indexing support. Tika parses files, extracts the text, and return it via a REST API.\n\n### Tika Setup\nSeting up a Tika test service is straight forward. In most cases on a Linux environment, you can simply download the Java JAR then run the service.\n\nMake sure java is installed:\n\n\u003cpre\u003e\u003ccode\u003e$ sudo apt-get install openjdk-8-jre-headless\n\u003c/code\u003e\u003c/pre\u003e\n\nThen download and start Tika:\n\u003cpre\u003e\u003ccode\u003e$ wget http://apache.mirror.amaze.com.au/tika/tika-server-1.16.jar\n$ java -jar tika-server-1.16.jar\n\u003c/code\u003e\u003c/pre\u003e\n\nThis will start Tika on the host. By default the Tika service is available on: `http://localhost:9998`\n\n### Enabling File indexing support in Moodle\nOnce a Tika service is available the Postgres Full-Text plugin in Moodle needs to be configured for file indexing support.\n\nAssuming you have already followed the basic installation steps, to enable file indexing support:\n\n1. Configure the plugin at: *Site administration \u003e Plugins \u003e Search \u003e Postgres Full Text.\n2. Select the *Enable file indexing* checkbox.\n3. Set *Tika URL*, including the port number e.g. http://localhost:9998.\n4. Click the *Save Changes* button.\n\n### Configure your site security\n\nOpen your site's security settings at *Site administration \u003e General \u003e Security \u003e HTTP Security* and ensure that \n\n1. The hostname **and** IP address of your Tika server are not shown in the *cURL blocked hosts list*.\n2. The port number of your Tika server is in the *cURL allowed ports list*. \n\nIf your Tika instance is running at `http://localhost:9998`, you have to remove both `localhost` and `127.0.0.1` from the *cURL blocked hosts list*, and add `9998` to the *cURL allowed ports list*. \n\n### What is Tika\nFrom the [Apache Tika](https://tika.apache.org/) website:\n\u003cblockquote\u003e\nThe Apache Tika™ toolkit detects and extracts metadata and text from over a thousand different file types (such as PPT, XLS, and PDF). All of these file types can be parsed through a single interface, making Tika useful for search engine indexing, content analysis, translation, and much more. You can find the latest release on the download page. Please see the Getting Started page for more information on how to start using Tika.\n\u003c/blockquote\u003e\n\n\n\n# Developed by Catalyst IT\n\n\nThis plugin was developed by Catalyst NZ:\n\nhttps://www.catalyst.net.nz\n\n\n\n# Contributing and Support\n\nIssues, and pull requests using github are welcome and encouraged!\n\nhttps://github.com/catalyst/moodle-search_postgresfulltext/issues\n\nIf you would like commercial support or would like to sponsor additional improvements\nto this plugin please contact us:\n\nhttps://www.catalyst.net.nz/contact-us\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalyst%2Fmoodle-search_postgresfulltext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatalyst%2Fmoodle-search_postgresfulltext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatalyst%2Fmoodle-search_postgresfulltext/lists"}