Indonesian police have detained about 20 suspected militants as security is stepped up ahead of the Christmas and New Year’s holiday season, a commander said on Thursday.