hightlight not worked when use script_score #46471
Labels
>bug
:Search Relevance/Highlighting
How a query matched a document
Team:Search Relevance
Meta label for the Search Relevance team in Elasticsearch
Describe the feature:
Elasticsearch version (
bin/elasticsearch --version
): 7.3.1Plugins installed: ["ikAnalyse"]
JVM version (
java -version
):1.7OS version (
uname -a
if on a Unix-like system):centos7Description of the problem including expected versus actual behavior:
hightlight not worked when use script_score,highlight not found in the response
if i used function_score it works fine
GET company/_search
{
"query": {
"script_score":{
"query": {
"multi_match": {
"query": "有限公司",
"fields": ["companyName^5","historyName^4","companyDesc"],
"minimum_should_match": "4<50%"
}
},
"script":{
"source":"1"
}
}
},
"highlight": {
"fields": {"companyName": {},"companyDesc": {},"historyName":{}}
}
}
The text was updated successfully, but these errors were encountered: