Wiki lookup should be case insensitive #6

Open
opened 2018-08-20 05:56:07 +00:00 by kuschelyagi · 0 comments
Owner

Currently the wiki searcher just does a request to http://url/{QUERY} and returns true if the page is found. This means it can handle redirects, but the text of the query must match exactly the page name (or a redirect to it). In many cases wikis have redirects from all-lowercase but if the page does not, lookup can fail.

Some wikis (wikias in particular) have a "Do you mean: " which could be used, but non-wikias don't seem to have this feature, so it can't be relied on.

Maybe we can do an API query instead (searches seem to be case-insensitive).

Currently the wiki searcher just does a request to `http://url/{QUERY}` and returns true if the page is found. This means it can handle redirects, but the text of the query must match exactly the page name (or a redirect to it). In many cases wikis have redirects from all-lowercase but if the page does not, lookup can fail. Some wikis (wikias in particular) have a "Do you mean: <actual page link>" which could be used, but non-wikias don't seem to have this feature, so it can't be relied on. Maybe we can do an API query instead (searches seem to be case-insensitive).
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
elsanctum/tenquestionmarks#6
No description provided.