Created
July 27, 2015 21:45
-
-
Save jonathanbarton/3b48069c9e5d6553ea75 to your computer and use it in GitHub Desktop.
FFU Filter Cache Process
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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