**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.
**Details:**
As implied in **[[ https://gunretort.xyz/api.php?action=help&modules=query%2Bsearch | 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:
```
https://gunretort.xyz/api.php?action=query&list=search&srsearch=NewTag|Anteater&srwhat=text&srnamespace=0|3000
```
returns pages which contain:
> NewTag
> x
> Anteater
> Anteater banana
> NewTag
The order of the words is reversed, with an unrelated word in-between.
and
> {{NewTag|Anteater}}
I think only the last of these should be returned.
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?