Perhaps a minor thing, but lucene regex doesn't appear to support \n natively. Instead cirrus needs to parse \n into a literal return charater which will then be re-encoded to \n at the json level when making requests to elasticsearch. Currently we pass the \n through all the way to lucene and don't find anything. Should be an easy fix, but we might want to consider if there are other special characters beyond \n (\r, \t? others? i dunno...) that we want to handle
Description
Description
Related Objects
Related Objects
- Mentioned In
- T57078: pagegenerators.py -match option
- Mentioned Here
- T317599: Allow ^ and $ in intitle regex search
Event Timeline
Comment Actions
This is in high demand. Currently workarounds for \n, [^\n], \s, \S are suggested at https://www.mediawiki.org/wiki/Help:CirrusSearch#Substitutions_for_some_metacharacters. I would also ask for ^ and $ to represent the beginning and end of a page which is T317599.