model/base: Moved columns iteration into weight_expression() function
model/base: Allow custom weight_func parameter in search_query() method
model/base: Moved weight_expression() function to model.search module
model/base: Moved search_query() to model.search module