It seems that my searching for how to do this brings back results that are a year old and apparently no longer work or I am not doing something correctly.
Through the MongoDB command line, I have run this for indexing:
db.collectiontest.ensureIndex( { "$**": "text" }, { name: "TextIndex" } )
Did this based on the example at
http://docs.mongodb.org/manual/tutorial/create-text-index-on-multiple-fields/
I do not receive an error when that is executed.
Here are 2 of the Stackoverflow postings I have tried:
How to search in fulltext index using php in mongodb
MongoDB Collection runCommand from PHP
The last post, I tried the accepted answer except the ensure index since I did that via command line and the poster's solution as well. Both methods returns a message showing "Array ( [errmsg] => no such cmd: text [bad cmd] =>" .
I'm running a vm of Ubuntu Server 12 with latest release versions of PHP and MongoDB.
Thanks,
James