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
|
2024-09-14 04:28:03 +08:00
|
|
|
* or more contributor license agreements. Licensed under the "Elastic License
|
|
|
|
* 2.0", the "GNU Affero General Public License v3.0 only", 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", the "GNU Affero General Public
|
|
|
|
* License v3.0 only", or the "Server Side Public License, v 1".
|
2015-10-30 02:40:19 +08:00
|
|
|
*/
|
2025-03-27 04:44:07 +08:00
|
|
|
apply plugin: 'elasticsearch.internal-yaml-rest-test'
|
|
|
|
apply plugin: 'elasticsearch.yaml-rest-compat-test'
|
2015-10-30 02:40:19 +08:00
|
|
|
|
|
|
|
esplugin {
|
2024-12-30 22:34:24 +08:00
|
|
|
description = 'Smart Chinese Analysis plugin integrates Lucene Smart Chinese analysis module into elasticsearch.'
|
|
|
|
classname ='org.elasticsearch.plugin.analysis.smartcn.AnalysisSmartChinesePlugin'
|
2015-10-30 02:40:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-09-21 17:48:26 +08:00
|
|
|
api "org.apache.lucene:lucene-analysis-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'
|
|
|
|
}
|