如何获取arangodb中的分析器列表
How to get the list of analyzers in arangodb
如何获取所有分析器的列表,包括 arangodb 中存在的自定义分析器和系统分析器。
谢谢,
尼洛帕尔
连接到 arangosh:
a = require("@arangodb/analyzers")
输出:
{
"ArangoAnalyzer" : function ArangoAnalyzer (data) { ... },
"analyzer" : [Function "(name)" ...],
"remove" : [Function "(name, force)" ...],
"save" : [Function "(name, type, properties, features)" ...],
"toArray" : [Function "()" ...]
}
然后在a中打印结果:
a.toArray()
输出:
[
[ArangoAnalyzer "text_fi" (type text)],
[ArangoAnalyzer "text_en" (type text)],
[ArangoAnalyzer "identity" (type identity)],
[ArangoAnalyzer "text_de" (type text)],
[ArangoAnalyzer "text_it" (type text)],
[ArangoAnalyzer "text_es" (type text)],
[ArangoAnalyzer "text_ru" (type text)],
[ArangoAnalyzer "text_fr" (type text)],
[ArangoAnalyzer "text_nl" (type text)],
[ArangoAnalyzer "text_no" (type text)],
[ArangoAnalyzer "text_pt" (type text)],
[ArangoAnalyzer "text_sv" (type text)],
[ArangoAnalyzer "text_zh" (type text)]
]
如何获取所有分析器的列表,包括 arangodb 中存在的自定义分析器和系统分析器。
谢谢, 尼洛帕尔
连接到 arangosh:
a = require("@arangodb/analyzers")
输出:
{
"ArangoAnalyzer" : function ArangoAnalyzer (data) { ... },
"analyzer" : [Function "(name)" ...],
"remove" : [Function "(name, force)" ...],
"save" : [Function "(name, type, properties, features)" ...],
"toArray" : [Function "()" ...]
}
然后在a中打印结果:
a.toArray()
输出:
[
[ArangoAnalyzer "text_fi" (type text)],
[ArangoAnalyzer "text_en" (type text)],
[ArangoAnalyzer "identity" (type identity)],
[ArangoAnalyzer "text_de" (type text)],
[ArangoAnalyzer "text_it" (type text)],
[ArangoAnalyzer "text_es" (type text)],
[ArangoAnalyzer "text_ru" (type text)],
[ArangoAnalyzer "text_fr" (type text)],
[ArangoAnalyzer "text_nl" (type text)],
[ArangoAnalyzer "text_no" (type text)],
[ArangoAnalyzer "text_pt" (type text)],
[ArangoAnalyzer "text_sv" (type text)],
[ArangoAnalyzer "text_zh" (type text)]
]