Skip to content

Instantly share code, notes, and snippets.

@jonathanbarton
Created July 27, 2015 21:45
Show Gist options
  • Save jonathanbarton/3b48069c9e5d6553ea75 to your computer and use it in GitHub Desktop.
Save jonathanbarton/3b48069c9e5d6553ea75 to your computer and use it in GitHub Desktop.
FFU Filter Cache Process
- Initiate freeTextSearch (basic search / keyword search)
- Obtain the FFU related facetRestrictions from the http response and cache just the FFU faceRestrictions
...later when doing filtered searches...
if (FFU Button is disabled)
- initiate the filterFreeTextSearch with modeffu=false and the checklistModel as is
elseif (FFU Button is enabled)
- pull the FFU faceRestrictions from cache
- combine the FFU and checklistModel facetRestrictions into a single object for the request
- initiate the filterFreeTextSearch with modeffu=true and the combined checklistModel/faceRestrictions object
FOLLOWUP: scenario when adding keyword to FFU enabled search with filters applied - how do we get new list of FFU faceRestrictions?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment