Basic indexing of entities working, more tests needed.