Page MenuHomePhabricator

Parameterize the common ngrams threshold
ClosedPublic

Authored by epriestley on Oct 17 2017, 9:00 PM.
Tags
None
Referenced Files
F15493013: D18710.id44919.diff
Sat, Apr 12, 8:46 PM
F15492786: D18710.id44920.diff
Sat, Apr 12, 6:21 PM
F15490243: D18710.id.diff
Fri, Apr 11, 3:36 PM
F15487488: D18710.diff
Thu, Apr 10, 2:32 PM
F15474090: D18710.id44919.diff
Sun, Apr 6, 5:21 AM
F15427152: D18710.id44919.diff
Sun, Mar 23, 1:09 PM
F15423511: D18710.id44920.diff
Sat, Mar 22, 3:47 PM
F15341268: D18710.diff
Mar 9 2025, 7:31 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.