Page MenuHomePhabricator

Make Ferret query functions sticky only if their values are not quoted
ClosedPublic

Authored by epriestley on Apr 14 2020, 5:03 PM.
Tags
None
Referenced Files
F13231279: D21108.id50272.diff
Tue, May 21, 12:20 AM
F13230653: D21108.id50272.diff
Mon, May 20, 11:12 PM
F13223708: D21108.id50279.diff
Sun, May 19, 4:48 AM
F13223164: D21108.diff
Sun, May 19, 4:20 AM
F13218057: D21108.diff
Sat, May 18, 9:51 AM
F13215006: D21108.id.diff
Fri, May 17, 2:18 PM
F13211062: D21108.id50272.diff
Fri, May 17, 5:27 AM
F13190340: D21108.id.diff
Sat, May 11, 9:52 AM
Subscribers
None

Details

Summary

Ref T13509. Currently, functions are "sticky", but this stickness is in the query execution layer.

Instead:

  • move stickiness to the query compiler; and
  • make it so that functions are not sticky if their arguments are quoted.

For example:

  • title:x y previously meant title:x title:y (and still does). The "title:" is sticky.
  • title:"x" y previously meant title:x title:y. It now means title:x all:y. The "title:" is not sticky because the argument is quoted.
Test Plan

Added unit tests, ran unit tests.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Apr 14 2020, 5:47 PM
This revision was automatically updated to reflect the committed changes.