Commit 1a4d3f51 authored by 李小芳's avatar 李小芳

修改mapping

parent 0c0a4949
...@@ -57,6 +57,9 @@ class Command(BaseCommand): ...@@ -57,6 +57,9 @@ class Command(BaseCommand):
raise CommandError( raise CommandError(
'unknown type name, type must be one of [topic, tag, itemwiki, diary, service, doctor, user, _all],ItemWiki,newwiki') 'unknown type name, type must be one of [topic, tag, itemwiki, diary, service, doctor, user, _all],ItemWiki,newwiki')
if options['type'] in ['service','sku']:
es = get_talos_es()
else:
es = get_es() es = get_es()
type_mapping = { type_mapping = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment