Add attributes for primary_field and default_index

Tested locally, works as intended.