Page MenuHomePhabricator

Show users how fulltext search queries are parsed and executed; don't query stopwords or short tokens
ClosedPublic

Authored by epriestley on Apr 13 2017, 12:04 AM.
Tags
None
Referenced Files
F15583657: D17672.id.diff
Wed, May 7, 11:00 PM
F15561249: D17672.id42497.diff
Tue, Apr 29, 6:50 PM
F15533678: D17672.id42498.diff
Wed, Apr 23, 9:10 PM
F15478955: D17672.id42498.diff
Apr 8 2025, 4:22 AM
F15475766: D17672.id42503.diff
Apr 6 2025, 11:29 PM
F15474654: D17672.id42498.diff
Apr 6 2025, 11:08 AM
F15449745: D17672.id42497.diff
Mar 28 2025, 11:57 AM
F15444778: D17672.id42498.diff
Mar 27 2025, 11:15 AM
Subscribers
None

Details

Summary

Depends on D17670. Fixes T12137. Fixes T12003. Ref T2632.

This shows users a readout of which terms were actually searched for.

This also drops those terms from the query we submit to the backend, dodging the weird behaviors / search engine bugs in T12137.

This might need some design tweaking.

Test Plan

Screen Shot 2017-04-12 at 4.56.59 PM.png (493×851 px, 52 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • Use phutil_utf8_strlen() for identifying short tokens.

InnoDB list is pretty conservative:

https://dev.mysql.com/doc/refman/5.7/en/fulltext-stopwords.html

| a     |
| about |
| an    |
| are   |
| as    |
| at    |
| be    |
| by    |
| com   |
| de    |
| en    |
| for   |
| from  |
| how   |
| i     |
| in    |
| is    |
| it    |
| la    |
| of    |
| on    |
| or    |
| that  |
| the   |
| this  |
| to    |
| was   |
| what  |
| when  |
| where |
| who   |
| will  |
| with  |
| und   |
| the   |
| www   |
This revision is now accepted and ready to land.Apr 13 2017, 1:59 AM
This revision was automatically updated to reflect the committed changes.