They should help customers find products using the language and mental model customers actually use. Good navigation reflects categories and buying missions. Good onsite search handles synonyms, mistakes, attributes and intent. Both should be measured against product discovery and conversion, not treated as purely technical features.
Related service
Conversion Optimisation