问题
How do I do full boolean text search in R? I am using str_match which works only with OR or | operator, or I use Reduce function with &. Is there a way to do AND, OR and XOR seamlessly for text search in R?
回答1:
consider using the rlucene package which connects to the lucene search library which provides full-text search including a BooleanQuery which siport AND OR and NOT.
来源:https://stackoverflow.com/questions/32124185/boolean-text-search-in-r