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
Unknown Object (File)
Sat, Nov 9, 2:46 PM
Unknown Object (File)
Sat, Nov 9, 2:46 PM
Unknown Object (File)
Sat, Nov 9, 2:46 PM
Unknown Object (File)
Wed, Nov 6, 12:07 AM
Unknown Object (File)
Oct 20 2024, 1:49 PM
Unknown Object (File)
Oct 17 2024, 10:27 AM
Unknown Object (File)
Oct 12 2024, 11:22 PM
Unknown Object (File)
Oct 7 2024, 10: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.