search: Use integer cast instead of case expression
search: Renamed "relevance" factor to "weight"