Make plantshare dependency in search optional