eland.Series.index

Series.index

Return eland index referencing Elasticsearch field to index a DataFrame/Series

Returns
eland.Index:

Note eland.Index has a very limited API compared to pandas.Index

Examples

>>> df = ed.DataFrame('localhost', 'flights')
>>> assert isinstance(df.index, ed.Index)
>>> df.index.es_index_field
'_id'
>>> s = df['Carrier']
>>> assert isinstance(s.index, ed.Index)
>>> s.index.es_index_field
'_id'