Full Text Search, Unit tests and pre-populating db with documents

@nursix : corrected the error you said, added a debug message where you said..and changed the unit tests accordingly from doc_document to project_project.
I will try to make a general indexing function as you said and will update this. Till then 
Please review it.
And please ensure that solr is enabled & available when you pre populate the data, only then it will index and the unit test will work fine.Else i have done error handling in units test too.