gpt4 book ai didi

elasticsearch - 查询时的Elasticsearch search_analyzer

转载 作者:行者123 更新时间:2023-12-03 01:34:43 25 4
gpt4 key购买 nike

我们可以在查询时提供像空白的search_analyzer吗?
像这样的东西:

"multi_match": {
"query": "423.0",
"type": "phrase",
"search_analyzer": "whitespace",
"fields": []
}

最佳答案

是的,字段名称是analyzer

例:

GET /_search
{
"query": {
"multi_match" : {
"query": "quick brown f",
"type": "phrase_prefix",
"analyzer": "whitespace",
"fields": [ "subject", "message" ]
}
}
}

有关更多详细信息,请查看文档: https://www.elastic.co/guide/en/elasticsearch/reference/6.5/query-dsl-multi-match-query.html

关于elasticsearch - 查询时的Elasticsearch search_analyzer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53317440/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com