replaceBooleanWordsAndEscapeTerm()
replaceBooleanWordsAndEscapeTerm(string $term) : string
Replace the following reserved words: AND OR NOT and escapes the following terms: + - && || ! ( ) { } [ ] ^ " ~ * ? : \.
Parameters
string | $term | Query term to replace and escape |
Returns
string —Replaced and escaped query term