Implement the SearchFactory class so that it takes in input parameters and constructs a tree of the proper SearchTree nodes
I told Dave you are on the search factory, so
that's where I want you. Fix it to have the proper
methods, and implement the createSelectionTree method,
which should allow for KeywordSearch and TagSearch, for
now. Make sure the code style is abstract enough to
easily allow for adding new types of selection searches.
Also make sure it incorportates tha ability to use the
different types of trees. You can re-define how you
think the parameteers should be properly passed to you
from the front end, if you see a beter way than our list
of string-string pairs. TEST to make sure it creates the
trees you think it does. Also, if you think of a better
way to include the weights of RankingTrees, please
assume such and LET ME KNOW so I can implement it.
UPDATE (10/8): I coded the CreateSelectionTree using a List<SearchParameter> where SearchParameter is a custom class that encapsulates the search type, search value and combination (if any). Wrote unit tests for everything except negation.