开发者

Solr apply filters on stored data

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜