为什么 solr RemoveDuplicatesTokenFilterFactory 不起作用? [英] Why solr RemoveDuplicatesTokenFilterFactory dont work?

查看:42
本文介绍了为什么 solr RemoveDuplicatesTokenFilterFactory 不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的schema.xml正在拆分产品名称,然后在拆分后使用RemoveDuplicate删除重复的单词.

My schema.xml is splitting product name and then uses RemoveDuplicate to remove duplicated words after split.

    <fieldType name="type_name" class="solr.TextField">
        <analyzer type="index">
            <tokenizer class="solr.PatternTokenizerFactory" pattern="\|| " />
            <filter class="solr.LowerCaseFilterFactory"/>
            <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>

在查询分析器中,我看到 RemoveDuplicatesTokenFilterFactory 对重复的单词完全没有做任何事情.为什么?

And in query analyzer I see that RemoveDuplicatesTokenFilterFactory did absolutely nothing to duplicated words. Why?

推荐答案

如果你阅读了 Wiki 你会看到它只删除了相同位置的重复项,这里不是这种情况.

If you read Wiki you will see that it only removes duplicates at the same position, which is not the case here.

这篇关于为什么 solr RemoveDuplicatesTokenFilterFactory 不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆