This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Licensed to the Apache Software Foundation (ASF) under one or more | |
* contributor license agreements. See the NOTICE file distributed with | |
* this work for additional information regarding copyright ownership. | |
* The ASF licenses this file to You under the Apache License, Version 2.0 | |
* (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Solr-8.11.2でデフォルトのKuromojiと併存できるようにKuromojiのパッケージ名を${PACKAGE}に変更するスクリプト | |
PACKAGE="com/example/unidic" | |
echo "lucene/analysis/kuromoji/build.xmlのパッケージ名、ディレクトリ名を変更します" | |
sed -i.bak -e "s/org\.apache\.lucene/${PACKAGE//\//.}\.lucene/g" lucene/analysis/kuromoji/build.xml | |
sed -i.bak2 -e "s/org\/apache\/lucene/${PACKAGE//\//\\/}\/lucene/g" lucene/analysis/kuromoji/build.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naur a/lucene/analysis/kuromoji/build.xml b/lucene/analysis/kuromoji/build.xml | |
--- a/lucene/analysis/kuromoji/build.xml 2022-06-14 01:26:41.000000000 +0900 | |
+++ b/lucene/analysis/kuromoji/build.xml 2023-07-20 18:41:44.533480829 +0900 | |
@@ -31,24 +31,39 @@ | |
<property name="ivy.default.configuration" value="default"/> | |
<import file="../analysis-module-build.xml"/> | |
- <!-- default configuration: uses mecab-ipadic --> | |
- <property name="ipadic.type" value="ipadic"/> | |
- <property name="ipadic.version" value="mecab-ipadic-2.7.0-20070801" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -ne 1 ]; then | |
echo "パッケージに使用するドメイン名を指定してください。例 com.example" | |
exit 1 | |
fi | |
PACKAGE=$1 | |
echo "変更後のパッケージに合わせてディレクトリ構造を変更します" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/gradle/generation/kuromoji.gradle b/gradle/generation/kuromoji.gradle | |
index 5754bd6..3c8aab9 100644 | |
--- a/gradle/generation/kuromoji.gradle | |
+++ b/gradle/generation/kuromoji.gradle | |
@@ -47,91 +47,67 @@ configure(project(":lucene:analysis:kuromoji")) { | |
} | |
} | |
- task compileMecab(type: Download) { | |
- description "Recompile dictionaries from Mecab data." |