{"id":21165416,"url":"https://github.com/msarhan/elasticsearch-analysis-arabic-plugin","last_synced_at":"2025-05-07T08:35:07.534Z","repository":{"id":91846127,"uuid":"553664511","full_name":"msarhan/elasticsearch-analysis-arabic-plugin","owner":"msarhan","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-15T21:54:17.000Z","size":16,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T08:12:16.225Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msarhan.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-18T15:09:14.000Z","updated_at":"2025-02-25T10:19:03.000Z","dependencies_parsed_at":"2024-11-20T14:45:31.920Z","dependency_job_id":null,"html_url":"https://github.com/msarhan/elasticsearch-analysis-arabic-plugin","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/msarhan%2Felasticsearch-analysis-arabic-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msarhan%2Felasticsearch-analysis-arabic-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msarhan%2Felasticsearch-analysis-arabic-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msarhan%2Felasticsearch-analysis-arabic-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msarhan","download_url":"https://codeload.github.com/msarhan/elasticsearch-analysis-arabic-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252843492,"owners_count":21812891,"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-20T14:32:52.443Z","updated_at":"2025-05-07T08:35:07.504Z","avatar_url":"https://github.com/msarhan.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arabic Analysis Plugin for Elasticsearch\n\nArabic Analysis plugin for Elasticsearch. It uses [lucene-arabic-analyzer](https://github.com/msarhan/lucene-arabic-analyzer) to extract arabic token roots.\n\n\n## Features\n- Normalizes input text by removing diacritics and Hamza-like characters\n- Extracts word's roots.\n\n## Components\n- `arabic-root` analyzer\n\n## Example\n\n```\nGET _analyze\n{\n  \"analyzer\": \"arabic-root\",\n  \"text\": \"اهْدِنَا الصِّرَاطَ الْمُسْتَقِيمَ\"\n}\n\n// Result:\n['هدن','هدي','صرط','قوم']\n```\n\n## Configuration\nThis plugin is preconfigured with builtin normalization, stop-words and a stemmer  which is derived from [lucene-arabic-analyzer](https://github.com/msarhan/lucene-arabic-analyzer).\n\n## Plugin in action\n1. Build the plugin:\n````\nmvn clean package\n````\n2. Run Elasticsearch and install plugin inside a docker container:\n````\ndocker compose up\n````\n3. Open `http://localhost:5601/` and login with `elastic/elastic` credentials.\n4. Go to `Dev Tools` and examine the plugin:\n````\nGET _analyze\n{\n  \"text\": \"اهْدِنَا الصِّرَاطَ الْمُسْتَقِيمَ\",\n  \"analyzer\": \"arabic-root\"\n}\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsarhan%2Felasticsearch-analysis-arabic-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsarhan%2Felasticsearch-analysis-arabic-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsarhan%2Felasticsearch-analysis-arabic-plugin/lists"}