DONE !

https://phabricator.wikimedia.org/T237645



On Thu, Nov 7, 2019 at 3:14 AM David Causse <dcausse@wikimedia.org> wrote:
Hi,

On Tue, Nov 5, 2019 at 9:15 PM Thad Guidry <thadguidry@gmail.com> wrote:
Hi Team,

I often see missed results in the Quick Search input box when phrases sometimes are indexed with an apostrophe, but its missed because we sometimes just type simple titles or simple names like so:

"no mans sky"
(no results)

but when I click "containing... no mans sky"
then the results page displays and shows the video game correctly.

It seems this might be because of an indexing choice for the Quick Search input box?

The reason you find "no man's sky" when searching "no mans sky" using Special:Search is simply because "mans" is matched somewhere in the document (could be because of the stemmer or for example the Quora topic id No-*Mans*-Sky-5).

The ApostropheFilter that you mention unfortunately has been designed for the turkish language and would remove everything after the apostrophe which is not what we want in general.

Completion (quick search input box) and Special:Search use very different techniques, what we do for apostrophe in completion is transforming it into a space.
Should we do something different for apostrophes in completion search? I have no clue and this would require some evaluation, if you believe this is important as it causes much annoyance feel free to file a task in phabricator so that we can discuss about it.

David.
_______________________________________________
Wikidata-tech mailing list
Wikidata-tech@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech