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

修改mapping

parent 0c0a4949
......@@ -57,7 +57,10 @@ class Command(BaseCommand):
raise CommandError(
'unknown type name, type must be one of [topic, tag, itemwiki, diary, service, doctor, user, _all],ItemWiki,newwiki')
es = get_es()
if options['type'] in ['service','sku']:
es = get_talos_es()
else:
es = get_es()
type_mapping = {
'topic': 'problem',
......
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