added command to show resource
Added debug flag to IndexResourceCommand to inspect the search doc on the CLI
converted empty arrays to short array syntax
tests and handles checking text file encoding before sending to search index