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
- Duplicates Merged Here
- T313290: insource searches with newline within regular expression are impossible
Event Timeline
Restricted Application added a project: Discovery-ARCHIVED. · View Herald TranscriptMay 13 2016, 9:04 PM2016-05-13 21:04:25 (UTC+0)
• Aqwww23 moved this task from Needs triage to Analysis on the Discovery-ARCHIVED board.May 13 2016, 9:22 PM2016-05-13 21:22:00 (UTC+0)
• Aqwww23 subscribed.
Comment Actionsffff
EBernhardson moved this task from Analysis to Needs triage on the Discovery-ARCHIVED board.May 13 2016, 9:26 PM2016-05-13 21:26:14 (UTC+0)
• Aqwww23 renamed this task from insource: queries can't search for the return character to rikvip.May 13 2016, 9:34 PM2016-05-13 21:34:35 (UTC+0)
Comment Actionsss
Krenair renamed this task from rikvip to insource: queries can't search for the return character.May 13 2016, 9:53 PM2016-05-13 21:53:07 (UTC+0)
Krenair removed the point value for this task.
TJones moved this task from This Quarter to elastic / cirrus on the Discovery-Search board.Jan 29 2019, 7:04 PM2019-01-29 19:04:43 (UTC+0)
Gehel moved this task from elastic / cirrus to Feature Requests on the Discovery-Search board.Aug 28 2020, 12:44 PM2020-08-28 12:44:49 (UTC+0)
EBernhardson updated the task description. (Show Details)Jul 19 2022, 4:35 PM2022-07-19 16:35:35 (UTC+0)
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.
Jack_who_built_the_house raised the priority of this task from Low to Needs Triage.May 15 2024, 10:13 PM2024-05-15 22:13:14 (UTC+0)