Setting up elasticsearch
Added thumbnail code