Page MenuHomeMiraheze

Searching fails with hyphens
Closed, InvalidPublic

Description

Hello!

Searching composing words fails as "-" works as minus sign despite being inside a word.

https://tuscriaturas.miraheze.org/w/index.php?search=Yeguas-Mantis+de+lo+Profundo&title=Especial%3ABuscar&profile=default&fulltext=1

The results should have shown the page "Yeguas-Mantis de lo Profundo" in the section of titles and also in content, as exists in the wiki.

Another example: https://tuscriaturas.miraheze.org/w/index.php?search=Qhot-naun-phaqiasiari&title=Especial%3ABuscar&profile=default&fulltext=1

In this case not only several title pages should have appeared but also many results of pages with that content and one category.

Compare with: https://tuscriaturas.miraheze.org/w/index.php?search=qhot+naun+phaqiasiari&title=Especial%3ABuscar&profile=default&fulltext=1

We believe that - is working as minus despite being inside a word, like here: https://tuscriaturas.miraheze.org/w/index.php?search=qhot+naun+-phaqiasiari&title=Especial%3ABuscar&profile=default&fulltext=1

We checked and found this doesn't happen in other instances running mediawiki software, such as Wikipedia: https://en.wikipedia.org/w/index.php?search=Valle-Incl%C3%A1n&title=Special%3ASearch&go=Ir&fulltext=1&ns0=1

Thanks

Event Timeline

This is a well known issue upstream with MediaWiki. The reason it doesn't affect Wikimedia is that they use CirrusSearch while we don't. Apologies.

Comment: This is the bug report in wikimedia phabricator: https://phabricator.wikimedia.org/T221560

John triaged this task as Normal priority.Jul 28 2022, 18:38