Fix haystack index setup, create ID index as well.
Fixed object delete.