allowed simple and near search to use arbitrary expressions