Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

Commit

Permalink
Supported _parent and _routing in fields field for elasticsearc…
Browse files Browse the repository at this point in the history
…h v1.4.1
  • Loading branch information
iwai committed Feb 23, 2015
1 parent d125429 commit 63dd067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/esimport
Expand Up @@ -77,12 +77,12 @@ for doc in f:
doctype = doc["_type"]

try:
parent = doc["_parent"]
parent = doc["fields"]["_parent"]
except KeyError:
parent = None

try:
routing = doc["_routing"]
routing = doc["fields"]["_routing"]
except KeyError:
routing = None

Expand Down

0 comments on commit 63dd067

Please sign in to comment.