A data file in which records can be accessed by means of an index. If the same field is used both in the index and for sequencing the records in the file, the index is called a primary index (and the file is called an indexed sequential file). Otherwise the index is called a secondary index (see inverted file).