Increasing the count for messages before indexing.
Adding checkout for q and to not being there in getThreads query.
Merge pull request #236 from scrollback/search-fix

Increasing the count for messages before indexing.