As far as I can remember that should work. The main problem I faced with the phpBB3 importer was the difference in how Discourse and phpBB count views.
Discourse increases the topic view count per user or, in case of anonymous users, IP address every 8 hours (at least that’s the default value of the site setting
phpBB3 increases the topic view count every time a user visits a topic. Navigating between topic pages does not count as additional views, but there’s no other limit. A user can generate hundreds of views per hour for the same topic simply by navigating between two different topics.
I can’t think of a method to approximate a view count that would look correct after the import.
For example, it’s quite possible that every imported topic has a view count of 10k or more whereas all your new topics created in Discourse have only about 1000 views because of the different counting algorithms.
0 views, 10k views, both would look wrong. So, why even bother importing view counts.
I’m not sure how Lithium counts views, but I’d advise against importing view counts if it’s similar to phpBB3.
But, if you really need to import view counts, creating views as seen in TopicView and setting the
views attribute of topics should work.