about summary refs log tree commit diff
path: root/pkgs/servers
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2023-04-14 21:23:46 +0100
committerGitHub <noreply@github.com>2023-04-14 21:23:46 +0100
commite58bfe9ba8f9b1293a8283e477e648cebb07f97c (patch)
treef283f2234ea6aafe9402f3cdbc3411a334ab4c1d /pkgs/servers
parent351cec5db3b7ca839779316a8b7c524ea8941f0f (diff)
parent58af20bd05b6f1258505a4213ba9782f30bfbf2e (diff)
Merge pull request #224551 from yamashitax/elasticsearch-kuromoji
elasticsearchPlugins: add analysis-kuromoji plugin
Diffstat (limited to 'pkgs/servers')
-rw-r--r--pkgs/servers/search/elasticsearch/plugins.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/servers/search/elasticsearch/plugins.nix b/pkgs/servers/search/elasticsearch/plugins.nix
index 616a85f7fdd9a..493c5634be997 100644
--- a/pkgs/servers/search/elasticsearch/plugins.nix
+++ b/pkgs/servers/search/elasticsearch/plugins.nix
@@ -48,6 +48,23 @@ in
     };
   };
 
+  analysis-kuromoji = esPlugin rec {
+    pluginName = "analysis-kuromoji";
+    version = esVersion;
+    src = fetchurl {
+      url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/${pluginName}/${pluginName}-${version}.zip";
+      sha256 =
+        if version == "7.17.3" then "1pwirciqzz092a30rys2y97mh62pwhlnk4mvv1a8g4640qmql2jx"
+        else if version == "6.8.21" then "0ywvqicxwcd5bn1j6gsdqhiagjmpha373p76p4lc2ric3in4dz3p"
+        else throw "unsupported version ${version} for plugin ${pluginName}";
+    };
+    meta = with lib; {
+      homepage = "https://github.com/elastic/elasticsearch/tree/master/plugins/analysis-kuromoji";
+      description = "The Japanese (kuromoji) Analysis plugin integrates Lucene kuromoji analysis module into Elasticsearch.";
+      license = licenses.asl20;
+    };
+  };
+
   analysis-lemmagen = esPlugin rec {
     pluginName = "analysis-lemmagen";
     version = esVersion;