Docstring:
```
Generates a dictionary that will identify the given ``obj`` in an index.

Args:
    obj: An object to look up by index

Returns:
    A dictionary of key-value pairs to match in the index
```