Apply default weights to the search when building for cache.
Modified to include the search weights.