Last modified: 2013-11-12 09:56:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T48118, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46118 - [TUX] Special:SearchTranslations: improve tokenization (word boundaries)
[TUX] Special:SearchTranslations: improve tokenization (word boundaries)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Translate (Other open bugs)
master
All All
: Normal enhancement (vote)
: ---
Assigned To: Niklas Laxström
https://translatewiki.net/w/i.php?tit...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-03-14 14:34 UTC by Nemo
Modified: 2013-11-12 09:56 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nemo 2013-03-14 14:34:48 UTC
Searching "GENDER" finds nothing useful because it returns only exact matches, not only by case but also from space to space, so to find a string like "{{GENDER:$1|sò|sò|sò}}" you have to use it all as keyword, or to use the wildcard: *GENDER*
Precision is nice but at the very least things like brackets, pipes etc. should be considered word boundaries. When a decision is made, add info on how to use wildcards etc.
Comment 1 Niklas Laxström 2013-03-25 11:58:52 UTC
https://gerrit.wikimedia.org/r/55563
Comment 2 Nemo 2013-11-12 09:56:52 UTC
(In reply to comment #0)
> or to use the
> wildcard: *GENDER*
> Precision is nice but at the very least things like brackets, pipes etc.
> should
> be considered word boundaries. When a decision is made, add info on how to
> use
> wildcards etc.

Self-answer: now * doesn't work (or rather, not beyond word level e.g. spaces), ? does.
https://lucene.apache.org/core/2_9_4/queryparsersyntax.html
Compare:
https://translatewiki.net/w/i.php?title=Special%3ASearchTranslations&query=Invia+apprezzamento
https://translatewiki.net/w/i.php?title=Special%3ASearchTranslations&query=Invi%3F
https://translatewiki.net/w/i.php?title=Special%3ASearchTranslations&query=Invia*apprezzamento
https://translatewiki.net/w/i.php?title=Special%3ASearchTranslations&query=Invia+*amento

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links