问题
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 :
- Don't send the document to Solr in the first place (filter it in your code)
- Implement a custom UpdateRequestProcessor : https://cwiki.apache.org/confluence/display/solr/Update+Request+Processors
来源:https://stackoverflow.com/questions/38435713/profanity-filteration-in-solr