I actually just stumbled across it.
https://github.com/rbeer/nodebb-plugin-search-elasticsearch/commit/19c572b9b40d5bc01cf99572ec5f9ac20f34e6fe
https://github.com/joe1chen/nodebb-plugin-search-elasticsearch/pull/3
Seems to work for me. Wildcards aren't recognized, though. Don't know if that ever was the case.
The error is thrown by (line 18)
escapeSpecialChars = function(s) {
return s.replace(/([\+\-&\|!\(\)\{\}\[\]\^"~\*\?:\\\ ])/g, function(match) {
return '\\' + match;
});
},
because the query string variable name in the payload seems to have changed from .query to .content. Thus s.replace fails, because s is of type undefined insted of the expected string.