python elasticsearch-dsl @timestamp in response -


i'm using elasticsearch-dsl-py extract data elasticsearch. in case want save value of @timestamp field (hits.hits._source.@timestamp). have no clue how deal fact @ character not allowed in python.

does has idea how value @timestamp?

h = response.hits[0] print h.@timestamp 

thanks.

in case can access field follows:

h = response.hits[0] print h['@timestamp'] 

Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -