Page MenuHomePhabricator

Parse raw Ferret queries into tokens before processing them
ClosedPublic

Authored by epriestley on Aug 30 2017, 3:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jul 3, 4:41 AM
Unknown Object (File)
Mon, Jun 27, 7:09 PM
Unknown Object (File)
Mon, Jun 20, 12:02 PM
Unknown Object (File)
Wed, Jun 15, 5:02 AM
Unknown Object (File)
Fri, Jun 10, 6:09 AM
Unknown Object (File)
Jun 4 2022, 8:33 PM
Unknown Object (File)
Jun 4 2022, 1:43 PM
Unknown Object (File)
Jun 2 2022, 3:16 AM
Subscribers
None

Details

Summary

Ref T12819. Depends on D18492. Instead of passing a raw query into the Query layer, parse it first.

This allows the query layer to figure out which parts should be substring vs term match, and would allow the SearchEngine layer to do author:... eventually by picking it out before sending it to the Ferret engine.

Test Plan

Ran some Ferret queries. They work like before, except that nonsense like -+"quack" raises an exception now.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable