I have upgraded to mongodb 2.6.4, I have run the following command to upgrade the mongodb to v5
mongos --configdb 127.0.0.1:27017 --upgrade
with no error, I have clicked on reindex the database. when I search I get the following stuff in the cli
MongoError: Unable to execute query: error processing query: ns=0.search limit=50 skip=0
key == "topic"
TEXT : query=cool, language=, tag=NULL
planner returned error: need exactly one text index for $text query
at Object.toError (/nodebb/node_modules/mongodb/lib/mongodb/utils.js:114:11)
at Cursor.close (/nodebb/node_modules/mongodb/lib/mongodb/cursor.js:983:5)
at commandHandler (/nodebb/node_modules/mongodb/lib/mongodb/cursor.js:700:21)
at Server.Base._callHandler (/nodebb/node_modules/mongodb/lib/mongodb/connection/base.js:445:41)
at MongoReply.parseBody (/nodebb/node_modules/mongodb/lib/mongodb/responses/mongo_reply.js:68:5)
at null.<anonymous> (/nodebb/node_modules/mongodb/lib/mongodb/connection/server.js:436:20)
at EventEmitter.emit (events.js:95:17)
As it says he still has 450 posts, but only posts/topics as his current username appear and searching doesn't seem to find much
can you PM us a link to his user profile? sounds like a bug, but as @baris says, all posts are tied to UID so changing username won't make a diff, but possible something else (deleting posts?) could affect that. Tried fooling around a bit on my dev env, couldn't repro so I don't really know.
@a_5mith good work mate, turns out the bug was originated in the ubb importer but never actually surfaced till I updated the importer plugin few weeks ago..
fix for admin's post not getting imported in this PR. https://github.com/a5mith/nodebb-plugin-import-smf/pull/1
also use the latest nodebb-plugin-import v0.1.4 to get more fancy bbcode support (details also mentioned in the PR thread) - the latest importer plugin also allows the topics and posts to be created even if there isn't a uid, however NodeBB 0.4.2 is throwing an error when creating topics with no uid, so you might need to wait till I update the importer's support to NodeBB 0.5.0 once it's released (discussion here)
I will push more PRs tonight for the other exporters I know of (phpBB, vbexporter, ubb) to patch and reference them back here