2021-05-06 15:42:08 +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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
esplugin {
|
|
|
|
description 'A test module that exposes a way to simulate search shard failures and warnings'
|
|
|
|
classname 'org.elasticsearch.search.query.ErrorQueryPlugin'
|
|
|
|
}
|
|
|
|
|
|
|
|
restResources {
|
|
|
|
restApi {
|
|
|
|
include '_common', 'indices', 'index', 'cluster', 'search'
|
|
|
|
}
|
|
|
|
}
|
2021-06-09 06:04:23 +08:00
|
|
|
|
|
|
|
tasks.named('splitPackagesAudit').configure {
|
|
|
|
// search.query is owned by server, these should be moved to errorquery
|
|
|
|
ignoreClasses 'org.elasticsearch.search.query.ErrorQueryBuilder',
|
|
|
|
'org.elasticsearch.search.query.ErrorQueryPlugin',
|
|
|
|
'org.elasticsearch.search.query.IndexError'
|
|
|
|
}
|