import common
import config

index = common.get_index_social_user_unique(config.elastic_type_social_broker)
es = common.get_es_social()

# 初始化索引的Mappings设置
_index_mappings = {
    "mappings": {
        "broker": {
            "properties": {
                "uuid": {
                    "type": "keyword"
                },
                "uhead": {
                    "type": "text"
                },
                "uname": {
                    "type": "keyword"
                },
                "uphone": {
                    "type": "text"
                },
                "uphonecode": {
                    "type": "text"
                },
                "uemail": {
                    "type": "keyword"
                },
                "upassword": {
                    "type": "text"
import common
import config

index = common.get_index_social_user_unique(
    config.elastic_type_social_user_account)
es = common.get_es_social()

# 初始化索引的Mappings设置
_index_mappings = {
    "mappings": {
        "user_account": {
            "properties": {
                "id": {
                    "type": "keyword"
                },
                "uuid": {
                    "type": "keyword"
                },
                "appid": {
                    "type": "keyword"
                },
                "account": {
                    "type": "keyword"
                },
                "investor_password": {
                    "type": "text"
                },
                "account_name": {
                    "type": "keyword"
                },
                "account_type": {
Beispiel #3
0
import common
import config

index = common.get_index_social_user_unique(config.elastic_type_social_setting)
es = common.get_es_social()

# 初始化索引的Mappings设置
_index_mappings = {
    "mappings": {
        "user_setting": {
            "properties": {
                "id": {
                    "type": "keyword"
                },
                "uuid": {
                    "type": "keyword"
                },
                "key": {
                    "type": "text"
                },
                "key_value": {
                    "type": "text"
                },
                "is_deleted": {
                    "type": "integer"
                },
                "update_time": {
                    "type": "date",
                    "format": "yyyy-MM-dd HH:mm:ss"
                },
                "create_time": {
Beispiel #4
0
import common
import config

index = common.get_index_social_user_unique(
    config.elastic_type_social_platform)
es = common.get_es_social()

# 初始化索引的Mappings设置
_index_mappings = {
    "mappings": {
        "user_platform": {
            "properties": {
                "id": {
                    "type": "keyword"
                },
                "uuid": {
                    "type": "keyword"
                },
                "appid": {
                    "type": "keyword"
                },
                "source_appid": {
                    "type": "keyword"
                },
                "source_uuid": {
                    "type": "keyword"
                },
                "is_deleted": {
                    "type": "integer"
                },
                "update_time": {
import common
import config

index = common.get_index_social_user_unique(
    config.elastic_type_social_user_subscriber)
es = common.get_es_social()

# 初始化索引的Mappings设置
_index_mappings = {
    "mappings": {
        "user_subscriber": {
            "properties": {
                "id": {
                    "type": "keyword"
                },
                "uuid": {
                    "type": "keyword"
                },
                "appid": {
                    "type": "keyword"
                },
                "server_id": {
                    "type": "keyword"
                },
                "sub_id": {
                    "type": "keyword"
                },
                "sub_account": {
                    "type": "keyword"
                },
                "sub_uuid": {