Page MenuHomePhabricator

Parameterize the common ngrams threshold
ClosedPublic

Authored by epriestley on Oct 17 2017, 9:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 2:20 PM
Unknown Object (File)
Sat, Nov 9, 2:47 PM
Unknown Object (File)
Oct 16 2024, 7:15 PM
Unknown Object (File)
Oct 1 2024, 2:11 PM
Unknown Object (File)
Sep 21 2024, 9:35 PM
Unknown Object (File)
Sep 10 2024, 3:34 PM
Unknown Object (File)
Aug 31 2024, 12:43 AM
Unknown Object (File)
Aug 19 2024, 8:20 AM
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
Branch
ngram1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18697
Build 25187: Run Core Tests
Build 25186: arc lint + arc unit

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.