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, Jun 1, 10:59 AM
Unknown Object (File)
Sun, Jun 1, 8:39 AM
Unknown Object (File)
Fri, May 30, 4:42 AM
Unknown Object (File)
Thu, May 29, 7:32 AM
Unknown Object (File)
Wed, May 7, 11:04 PM
Unknown Object (File)
Apr 30 2025, 1:00 AM
Unknown Object (File)
Apr 25 2025, 7:12 AM
Unknown Object (File)
Apr 24 2025, 7:39 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