gpt4 book ai didi

java - Solr 对存储的数据应用过滤器

转载 作者:行者123 更新时间:2023-11-30 04:59:06 24 4
gpt4 key购买 nike

是否可以对存储的数据应用过滤器,就像我们在索引时应用过滤器一样。例如,我在索引期间对文件使用 KeepWordFilter。但我什至不希望存储过滤后的数据。

    <fieldType name="text" class="solr.TextField"                           
positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.WhitespaceTokenizerFactory" />
<!--
in this example, we will only use synonyms at query time <filter
class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt"
ignoreCase="true" expand="false"/>
-->
<filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" />
....

是否存储了分析器类型?如果不是,还有什么替代方案?

最佳答案

没有可存储的分析器。这些值按原样存储,不进行任何修改。
您需要在将数据馈送到 Solr 之前添加处理,可能是在客户端。

关于java - Solr 对存储的数据应用过滤器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7540196/

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