Page MenuHomePhabricator

Consider using prefix search for Special:Search integration
Open, LowestPublic

Description

Might lead to better search results.

I've benchmarked prefix search a bit with random strings and it is significantly slower for short strings, but not noticeably shorter for longer strings.

Event Timeline

Change 307300 had a related patch set uploaded (by Lucie Kaffee):
Add prefix search for the Special:Search integreation

https://gerrit.wikimedia.org/r/307300

I -2'ed the patch because we said it will bring up too many things in general and is a mess for performance reasons. We might say the $term string passed from special search to the AP's search hook should be longer than 5 characters to be considered for not prefixed search. This is an easy fix, but I'd need to know first whether it'd actually make a different performance wise. ( @hoo and @aude )

I -2'ed the patch because we said it will bring up too many things in general and is a mess for performance reasons. We might say the $term string passed from special search to the AP's search hook should be longer than 5 characters to be considered for not prefixed search. This is an easy fix, but I'd need to know first whether it'd actually make a different performance wise. ( @hoo and @aude )

Yes, prefix search gets better (performance wise) if the prefix is longer.

Lucie moved this task from Doing to Review on the ArticlePlaceholder board.
Lucie moved this task from Proposed to Review on the Wikidata-Sprint-2016-08-16 board.
thiemowmde triaged this task as Lowest priority.Aug 31 2016, 7:46 AM
thiemowmde moved this task from Proposed to Doing on the Wikidata-Sprint-2016-08-30 board.
thiemowmde moved this task from incoming to in progress on the Wikidata board.
thiemowmde moved this task from Review to Doing on the ArticlePlaceholder board.
thiemowmde moved this task from Doing to To Do Next on the ArticlePlaceholder board.

Change 307300 abandoned by Thiemo Kreuz (WMDE):
Add prefix search for the Special:Search integreation

Reason:
I moved the task T143597 back on the AdvancedSearch board. Given the age of this patch I will close it for now. It can still be found from the task and be used as a template for a later patch.

https://gerrit.wikimedia.org/r/307300