Hidden order in 1d bosonic gases