Solr 文档解释了 SynonymFilterFactory 中 expand=true 的作用如下:
a synonym will be expanded to all equivalent synonyms.
If it is false, all equivalent synonyms will be reduced to the first in the list.
我想知道这到底是什么意思?如果有人可以详细说明它的作用,那就太好了。
Solr 文档解释了 SynonymFilterFactory 中 expand=true 的作用如下:
a synonym will be expanded to all equivalent synonyms.
If it is false, all equivalent synonyms will be reduced to the first in the list.
我想知道这到底是什么意思?如果有人可以详细说明它的作用,那就太好了。
来自 Solr Wiki 上的 Solr SynonymFilterFactory文档:
# If expand==true, "ipod, i-pod, i pod" is equivalent to the explicit mapping:
ipod, i-pod, i pod => ipod, i-pod, i pod
# If expand==false, "ipod, i-pod, i pod" is equivalent to the explicit mapping:
ipod, i-pod, i pod => ipod
由于 Solr SynonymFilterFactory 现在已弃用,因此现在使用 SynonymGraphFilterFactory 类。这个答案仍然适用于 SynonymGraphFilterFactory。