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
F15384726: D21108.diff
Fri, Mar 14, 8:39 PM
F15376719: D21108.id50272.diff
Thu, Mar 13, 5:09 AM
Unknown Object (File)
Thu, Feb 27, 7:11 AM
Unknown Object (File)
Wed, Feb 26, 7:28 AM
Unknown Object (File)
Feb 15 2025, 10:49 PM
Unknown Object (File)
Feb 10 2025, 6:27 PM
Unknown Object (File)
Feb 9 2025, 8:57 AM
Unknown Object (File)
Feb 9 2025, 8:57 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.