开发者

Solr apply filters on stored data

开发者 https://www.devze.com 2023-04-07 12:26 出处:网络
Is it possible to apply filters to stored data like we can apply filter when indexing. For example I use KeepWordFilter on a filed during indexing. But I don\'t want filtered data to beeven stored.

Is it possible to apply filters to stored data like we can apply filter when indexing. For example I use KeepWordFilter on a filed during indexing. But I don't want filtered data to be even stored.

    <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.S开发者_高级运维ynonymFilterFactory" synonyms="index_synonyms.txt"
                ignoreCase="true" expand="false"/>                          
            -->                                                             
            <filter class="solr.StopFilterFactory" ignoreCase="true"        
                words="stopwords.txt" />
   .... 

Is there an analyser type stored? If not what are the alternatives?


There is no analyzer for stored. The values are stored as is without any modifications.
You would need to add the handling before the data is fed to Solr, probably at the client side.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号