search: track applied heuristics in and/or queries
There are no commits yet
Push commits to the source branch or add previously merged commits to review them.
Created by: rvantonder
I need to add information to the parser that tracks whether a heuristic was applied for a query. This information:
Implementation detail
The same heuristics generally correspond to both an option (allowing the heuristic to run), and whether they were applied. So I've reorganized the types to reflect this and introduce two maps (sets) that record:
I choose maps rather than structs because (a) I want to use the same type/label to identify heuristics since they correspond, and (b) I later want to iterate over the data structure of set heuristics, rather than inspect each possible field set in a struct. See inline comments for more.
Push commits to the source branch or add previously merged commits to review them.