MW Version: 1.30
Scenario: I need to search pages for a string which contains an embedded pipe.
Request: Treat embedded pipes in searches as string characters.
Current: In MediaWiki search, embedded pipes behave as boolean AND.
Note: This issue was discovered and validated through the MW API, not through MW search interface.
As implied in this helpfile, srsearch param does not accept multiple values. Therefor, i assume an embedded pipe will be treated as part of the search string.
However, this call:
returns pages which contain:
no pipe, unrelated word in-between:
no pipe, order is reversed, with an unrelated word in-between:
and (the desired):
The apparent logic is "contains both words anyplace on the page." In other words, the pipe in srsearch is being interpreted as an AND.
Ie, multivalue entries ARE supported in srsearch (although helpfile suggests not), except they are interpreted as AND instead of the usual OR.
Is there any workaround, to treat embedded pipe as string?