How can I factor metadata when returning relevant search results?
You can boost or down-weight content based on its metadata of your collection. Go to the Schema section in your Console and view the metadata that is available. You can also add new custom fields to the records if you want to enhance your data.
Note that machine learning will further improve the search experience automatically, based on your users' interaction with results.