Fix for createIndex with public_search

According to the IndexDen docs, public_search should be passed as a JSON body object when creating an index, not as an optional query parameter.

I've verified the index creation process both before and after my fix. Before, the index was created without public search; after, public search was correctly set.