Page MenuHomePhabricator

Add "bin/search query" for debugging query execution
ClosedPublic

Authored by epriestley on Oct 6 2017, 2:51 PM.
Tags
None
Referenced Files
F13091504: D18690.diff
Thu, Apr 25, 3:00 AM
Unknown Object (File)
Fri, Apr 19, 6:52 PM
Unknown Object (File)
Tue, Apr 16, 6:57 PM
Unknown Object (File)
Wed, Apr 3, 2:09 PM
Unknown Object (File)
Mar 13 2024, 10:14 PM
Unknown Object (File)
Mar 13 2024, 8:00 PM
Unknown Object (File)
Mar 13 2024, 8:33 AM
Unknown Object (File)
Mar 6 2024, 4:09 AM
Subscribers
None

Details

Summary

Ref T13000. Currently, queries can only be executed from the web UI, which requires logging in as a user. I really want to avoid doing that wherever we can, but being able to execute queries on an instance (and, particularly, see the ngrams and timings on the underlying lookups) would have been helpful in several cases.

Improve tooling a bit in advance of the "common ngrams" stuff going out since it seems likely that it will be useful if issues arise.

Test Plan

Ran bin/search query --query ..., got useful minimal output. Ran with --trace to get internals.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Oct 6 2017, 3:33 PM
This revision was automatically updated to reflect the committed changes.