Put some repeating code into a method.
Updated removeOne() so it can be used on multiple post types.
Removed unused methods.
Added option to getPost() that give you the option whether you want to retrieve meta or not.
Simplified a couple things. Added a todo.
If a field of study does not have any social networks applied to it, this field is an empty string. Elastic search is expecting an array, so if its an empty string, make it an empty array.
Updated putAll() so that it will import all content types that are specified in the settings.