Fix createIndex support for public_search
Merge pull request #1 from ssevertson/master

Fix for createIndex with public_search