示例#1
0
文件: uri.py 项目: jurelou/salver
 def elastic_mapping(cls):
     return BaseFact.make_mapping(
         {"mappings": {
             "properties": {
                 "location": {
                     "type": "keyword"
                 }
             }
         }}, )
示例#2
0
文件: ipv6.py 项目: jurelou/salver
 def elastic_mapping(cls):
     return BaseFact.make_mapping(
         {"mappings": {
             "properties": {
                 "address": {
                     "type": "ip"
                 }
             }
         }}, )
示例#3
0
 def elastic_mapping(cls):
     return BaseFact.make_mapping(
         {'mappings': {
             'properties': {
                 'address': {
                     'type': 'ip'
                 }
             }
         }}, )
示例#4
0
 def elastic_mapping(cls):
     return BaseFact.make_mapping(
         {'mappings': {
             'properties': {
                 'name': {
                     'type': 'keyword'
                 }
             }
         }}, )
示例#5
0
 def elastic_mapping(cls):
     return BaseFact.make_mapping(
         {
             'mappings': {
                 'properties': {
                     'port': {
                         'type': 'integer'
                     },
                     'proto': {
                         'type': 'keyword'
                     },
                 },
             },
         }, )
示例#6
0
 def elastic_mapping(cls):
     return BaseFact.make_mapping(
         {
             'mappings': {
                 'properties': {
                     'content': {
                         'type': 'text'
                     },
                     'id': {
                         'type': 'keyword'
                     },
                     'date': {
                         'type': 'text'
                     },
                     'rt': {
                         'type': 'boolean'
                     },
                 },
             },
         }, )
示例#7
0
文件: tweet.py 项目: jurelou/salver
 def elastic_mapping(cls):
     return BaseFact.make_mapping(
         {
             "mappings": {
                 "properties": {
                     "content": {
                         "type": "text"
                     },
                     "id": {
                         "type": "keyword"
                     },
                     "date": {
                         "type": "text"
                     },
                     "rt": {
                         "type": "boolean"
                     },
                 },
             },
         }, )