profanity filteration in solr

隐身守侯 提交于 2020-01-05 05:45:50

问题


I am servering some webdata to my site using apache solr 4.10.3. I have to block profanity.

How do I block profanity in search?

I have some confusion about this filter deployment also.

Should I apply filter for profanity at document indexing time or document search time?


回答1:


You have 2 possibilities :

  1. Don't send the document to Solr in the first place (filter it in your code)
  2. Implement a custom UpdateRequestProcessor : https://cwiki.apache.org/confluence/display/solr/Update+Request+Processors


来源:https://stackoverflow.com/questions/38435713/profanity-filteration-in-solr

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!