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)
Mon, Dec 9, 3:00 PM
Unknown Object (File)
Mon, Dec 9, 3:00 PM
Unknown Object (File)
Mon, Dec 9, 2:59 PM
Unknown Object (File)
Mon, Dec 9, 2:54 PM
Unknown Object (File)
Sat, Dec 7, 1:44 PM
Unknown Object (File)
Sat, Dec 7, 11:14 AM
Unknown Object (File)
Nov 14 2024, 6:53 PM
Unknown Object (File)
Nov 10 2024, 8:19 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