Bagless vacuums especially those with HEPA filters work well in capturing dust and dirt that may cause allergies. However, their canisters should be emptied after each use for better efficiency. This process may spread more allergens to your environment.
If you're suffering from allergies, use a mask and empty out your bagless vacuum in a well-ventilated area to minimise the risk of irritation.