Default email parser does not parse emails with plus symbol (tested on 11.5):
For [email protected] it works fine:
select ts_debug('[email protected]');
+-----------------------------------------------------------------------------+
| ts_debug |
|-----------------------------------------------------------------------------|
| (email,"Email address",[email protected],{simple},simple,{[email protected]}) |
+-----------------------------------------------------------------------------+
But for [email protected] it treats + as a token separator:
select ts_debug('[email protected]');
+-------------------------------------------------------------------------------------+
| ts_debug |
|-------------------------------------------------------------------------------------|
| (asciiword,"Word, all ASCII",test,{english_stem},english_stem,{test}) |
| (blank,"Space symbols",+,{},,) |
| (email,"Email address",[email protected],{simple},simple,{[email protected]}) |
+-------------------------------------------------------------------------------------+
Is there an easy way to fix the email parser? I know that it is possible to implement custom parser but it sounds like an overkill for this issue. Also I can't find relevant example of such parser.