Page MenuHomePhabricator

Parameterize the common ngrams threshold
ClosedPublic

Authored by epriestley on Oct 17 2017, 9:00 PM.
Tags
None
Referenced Files
F17727093: D18710.id44919.diff
Sat, Jul 19, 12:27 AM
F17727064: D18710.id44920.diff
Fri, Jul 18, 11:47 PM
Unknown Object (File)
May 28 2025, 5:59 AM
Unknown Object (File)
May 20 2025, 4:43 PM
Unknown Object (File)
May 19 2025, 2:53 PM
Unknown Object (File)
May 7 2025, 4:09 AM
Unknown Object (File)
Apr 18 2025, 11:44 PM
Unknown Object (File)
Apr 12 2025, 8:46 PM
Subscribers
None

Details

Summary

Ref T13000. Since other changes have generally made the ngrams table manageable, I'm not planning to enable common ngrams by default at this time.

Instead, make the threshold configurable with "--threshold" so we can guide installs through tuning this if they want (e.g. PHI110), and tune hosted instances.

(This might eventually become automatic, but just smoothing this bit off for now feels reasonable to me.)

Test Plan

Ran with --reset, and with various invalid and valid --threshold arguments.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

amckinley added inline comments.
src/applications/search/management/PhabricatorSearchManagementNgramsWorkflow.php
23–24

I see we validate this below, but maybe add a note in the help text indicating that we expect a float between 0.0 and 1.0?

This revision is now accepted and ready to land.Oct 17 2017, 9:08 PM
This revision was automatically updated to reflect the committed changes.