Search correctly weights parts of search documents

The search will now rank results correctly based on how they are
weighted in the materialized view.