gpt4 book ai didi

elasticsearch - 分析在ElasticSearch中建立索引的术语

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

因此,我有一个定制的分析器,它从本体中添加了其他术语。另外,我想在对术语进行索引之前对其进行词干处理。以下是从elasticsearch head插件获取的index metadata

{
"state": "open",
"settings": {
"index": {
"refresh_interval": "1000s",
"number_of_shards": "5",
"creation_date": "1471931611750",
"analysis": {
"filter": {
"owlfilter": {
"type": "owl",
"indexName": "ontoowl",
"expansionType": "RDFSLABEL",
"owlFile": "/home/tannys/elasticsearch-2.3.0/ontologyWorkTrial/myownowl.owl"
}
},
"analyzer": {
"owlanalyzer": {
"filter": ["owlfilter","porter_stem"],
"type": "custom",
"tokenizer": "standard"
}
}
},
"number_of_replicas": "1",
"uuid": "d8Ub8A0eSm65geMK_bpdvw",
"version": {"created": "2030099"}
}
},
"mappings": {
"mytype": {
"properties": {
"nameortitle": {
"search_analyzer": "standard",
"analyzer": "owlanalyzer",
"store": true,
"type": "string"
},
"description": {
"search_analyzer": "standard",
"analyzer": "owlanalyzer",
"store": true,
"type": "string"
}
},
"aliases": [ ]
}
}
}

具有讽刺意味的是,在我使用 porter_stem过滤器之前,结果更好。所以我不太确定出了什么问题。我想看看正在被索引的术语。我如何查看分析仪的性能,例如说卢克对Lucene做了什么?
任何指导。

最佳答案

您可以使用Term Vectors API here。这将为您提供文档中某个字段的术语,或者您也可以以相同方式使用multi-term API查看多个文档中的术语。

关于elasticsearch - 分析在ElasticSearch中建立索引的术语,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39117399/

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