In My search page requirement , I need to perform following operation.
Text of user performed search
(example 20k+ mobile phones + samsung)Ordering of search refinements
(for a particular user : refinement is in order of 'price,company,delivery' and for some other it can be 'delivery,price,company'. This class will handle this )Relaxation of some parameters when results are less.
( If results are less by some logic (say change slightly in price range) will be applied. to increase no. of results)Search Results caching
(caching search results)
for these operation i created a separate class. i want to know is it correct to create class for this or create a function in some common search function class say "seacrhUtility" should be sufficient.