2015-10-30 02:40:19 +08:00
|
|
|
/*
|
2021-02-03 05:41:39 +08:00
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
|
|
* Side Public License, v 1.
|
2015-10-30 02:40:19 +08:00
|
|
|
*/
|
2021-08-31 14:45:52 +08:00
|
|
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
2021-04-09 05:11:50 +08:00
|
|
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
2015-10-30 02:40:19 +08:00
|
|
|
|
|
|
|
esplugin {
|
|
|
|
description 'Smart Chinese Analysis plugin integrates Lucene Smart Chinese analysis module into elasticsearch.'
|
|
|
|
classname 'org.elasticsearch.plugin.analysis.smartcn.AnalysisSmartChinesePlugin'
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-06-30 15:37:09 +08:00
|
|
|
api "org.apache.lucene:lucene-analyzers-smartcn:${versions.lucene}"
|
2015-10-30 02:40:19 +08:00
|
|
|
}
|
|
|
|
|
2020-03-18 22:09:29 +08:00
|
|
|
restResources {
|
|
|
|
restApi {
|
2021-03-27 07:20:14 +08:00
|
|
|
include '_common', 'indices', 'index', 'search'
|
2020-03-18 22:09:29 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-18 00:27:16 +08:00
|
|
|
tasks.named("dependencyLicenses").configure {
|
2015-10-30 02:40:19 +08:00
|
|
|
mapping from: /lucene-.*/, to: 'lucene'
|
|
|
|
}
|
|
|
|
|
2021-06-09 06:04:23 +08:00
|
|
|
tasks.named('splitPackagesAudit').configure {
|
|
|
|
// Lucene packages should be owned by Lucene!
|
|
|
|
ignoreClasses 'org.elasticsearch.index.analysis.SmartChineseAnalyzerProvider',
|
|
|
|
'org.elasticsearch.index.analysis.SmartChineseNoOpTokenFilterFactory',
|
|
|
|
'org.elasticsearch.index.analysis.SmartChineseStopTokenFilterFactory',
|
|
|
|
'org.elasticsearch.index.analysis.SmartChineseTokenizerTokenizerFactory'
|
|
|
|
}
|