mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-06 04:58:50 +00:00
* Search enhancement: pinned queries (#44345) Search enhancement: - new query type allows selected documents to be promoted above any "organic” search results. This is the first feature in a new module `search-business-rules` which will house licensed (non OSS) logic for rewriting queries according to business rules. The PinnedQueryBuilder class offers a new `pinned` query in the DSL that takes an array of promoted IDs and an “organic” query and ensures the documents with the promoted IDs rank higher than the organic matches. Closes #44074
46 lines
1.2 KiB
Groovy
46 lines
1.2 KiB
Groovy
evaluationDependsOn(xpackModule('core'))
|
|
|
|
apply plugin: 'elasticsearch.esplugin'
|
|
|
|
esplugin {
|
|
name 'search-business-rules'
|
|
description 'A plugin for applying business rules to search result rankings'
|
|
classname 'org.elasticsearch.xpack.searchbusinessrules.SearchBusinessRules'
|
|
extendedPlugins = ['x-pack-core']
|
|
}
|
|
archivesBaseName = 'x-pack-searchbusinessrules'
|
|
|
|
|
|
integTest.enabled = false
|
|
|
|
// Instead we create a separate task to run the
|
|
// tests based on ESIntegTestCase
|
|
task internalClusterTest(type: Test) {
|
|
description = 'Java fantasy integration tests'
|
|
mustRunAfter test
|
|
|
|
include '**/*IT.class'
|
|
}
|
|
|
|
check.dependsOn internalClusterTest
|
|
|
|
dependencies {
|
|
compileOnly project(path: xpackModule('core'), configuration: 'default')
|
|
testCompile project(path: xpackModule('core'), configuration: 'testArtifacts')
|
|
testCompile project(":test:framework")
|
|
if (isEclipse) {
|
|
testCompile project(path: xpackModule('core-tests'), configuration: 'testArtifacts')
|
|
}
|
|
}
|
|
|
|
// copied from CCR
|
|
dependencyLicenses {
|
|
ignoreSha 'x-pack-core'
|
|
}
|
|
|
|
//testingConventions.naming {
|
|
// IT {
|
|
// baseClass "org.elasticsearch.xpack.searchbusinessrules.PinnedQueryBuilderIT"
|
|
// }
|
|
//}
|