0 如何在R中進行完整的布爾文本搜索?我正在使用str_match,它只適用於OR或|或者我使用&的Reduce功能。有沒有辦法做AND,OR和XOR無縫地用於R中的文本搜索?布爾文本在R中搜索 來源 2015-08-20 Apricot +1 請包括一個具體的例子。 – nrussell +0 正則表達式'和'可能是不可能的,看看[這裏](http://stackoverflow.com/questions/3041320/regex-and-operator)和[這裏](http://stackoverflow.com/問題/ 469913 /常規表達式 - 有 - - 一個和運營商)。我認爲你需要正則表達式的'lockahead'和'lockbehind'。 – SabDeM +0 'library(stringi)'支持在char類中使用'&'。欲瞭解更多信息,請閱讀'help(「stringi-search-charclass」,package =「stringi」)' –
-1 考慮使用rlucene包,它連接到lucene搜索庫,它提供了全文搜索,包括其siport和或不包含一個BooleanQuery。 來源 2015-08-20 17:14:26 +0 謝謝Oren Bochman。將嘗試rlucene。猜猜我有一個陡峭的學習曲線。 – Apricot
請包括一個具體的例子。 – nrussell
正則表達式'和'可能是不可能的,看看[這裏](http://stackoverflow.com/questions/3041320/regex-and-operator)和[這裏](http://stackoverflow.com/問題/ 469913 /常規表達式 - 有 - - 一個和運營商)。我認爲你需要正則表達式的'lockahead'和'lockbehind'。 – SabDeM
'library(stringi)'支持在char類中使用'&'。欲瞭解更多信息,請閱讀'help(「stringi-search-charclass」,package =「stringi」)' –