We are using mediaWiki 1.14.1.
Our wiki is about language, so case is significant and "word" and "Word" could be quite different things. Accordingly, $wgCapitalLinks has been set to false. However, the behaviour is somewhat strange. If, for example, "word" exists, but "Word" doesn't: * Searching for "word" shows "word" -- OK * Searching for "Word" shows "word", which is wrong because they are different thing. Further, the article title is "Word" (and if edited, Recent Changes shows "Word", too). * Following [[word]] shows "word" -- OK * Oddly, following [[Word]] shows "Word" in edit mode with the contents of "word"!
How can I set up MediaWiki so that "word" and "Word" are so different as "Black" and "White".
Thanx Javier
On Tue, Jan 19, 2010 at 4:25 AM, Javier Bezos jbezos@fundeu.es wrote:
We are using mediaWiki 1.14.1.
Our wiki is about language, so case is significant and "word" and "Word" could be quite different things. Accordingly, $wgCapitalLinks has been set to false. However, the behaviour is somewhat strange. If, for example, "word" exists, but "Word" doesn't:
- Searching for "word" shows "word" -- OK
- Searching for "Word" shows "word", which is wrong because
they are different thing.
Search is case-insensitive in MediaWiki by default. You may want to try the SphinxSearch extension (http://www.mediawiki.org/wiki/Extension:SphinxSearch), which seems to have an option for case-sensitive search (see option "charset_table" in sphinx.conf).
Haven't tried any of it though.
Joshua
Joshua C. Lerner escribió:
On Tue, Jan 19, 2010 at 4:25 AM, Javier Bezos jbezos@fundeu.es wrote:
We are using mediaWiki 1.14.1.
Our wiki is about language, so case is significant and "word" and "Word" could be quite different things. Accordingly, $wgCapitalLinks has been set to false. However, the behaviour is somewhat strange. If, for example, "word" exists, but "Word" doesn't:
- Searching for "word" shows "word" -- OK
- Searching for "Word" shows "word", which is wrong because
they are different thing.
Search is case-insensitive in MediaWiki by default. You may want to try the SphinxSearch extension (http://www.mediawiki.org/wiki/Extension:SphinxSearch), which seems to have an option for case-sensitive search (see option "charset_table" in sphinx.conf).
Haven't tried any of it though.
Joshua
It's not just searching. The Go option will try to lowercase the given text to look if something matches. That's useful when people write everything it in uppercase. If the exact match exists, it will obviously take priority.
From r61150 you could override it with SearchGetNearMatchBefore hook.
You seem to have something else going on, though, since the page title is moved to the matching page. http://www.wikilengua.org/index.php?title=tOpOnImOs_DE_eSpA%C3%B1A wouldn't show [[Topónimos de España]] by default, but in wikilengua it does.
mediawiki-l@lists.wikimedia.org