think_elasticsearch
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -37,5 +37,18 @@ 'use strict'; | ||
this._mapping = { | ||
userid: { | ||
type: 'string' | ||
}, | ||
username: { | ||
type: 'string' | ||
}, | ||
source: 'string', | ||
info: { | ||
idNo: { type: 'string' }, | ||
real_name: { type: 'string' }, | ||
address: { type: 'string' }, | ||
phonenum: { type: 'string' }, | ||
email: { type: 'string' }, | ||
qq: { type: 'string' }, | ||
wechat_unionid: { type: 'string' }, //微信unionid | ||
sina_weibo: { type: 'string' } }, | ||
create_time: { | ||
@@ -42,0 +55,0 @@ type: 'second' |
@@ -16,5 +16,19 @@ /** | ||
this._mapping = { | ||
userid: { | ||
type: 'string' | ||
}, | ||
username: { | ||
type: 'string' | ||
}, | ||
source: 'string', | ||
info: { | ||
idNo: {type: 'string'}, | ||
real_name: {type: 'string'}, | ||
address: {type: 'string'}, | ||
phonenum: {type: 'string'}, | ||
email: {type: 'string'}, | ||
qq: {type: 'string'}, | ||
wechat_unionid: {type: 'string'},//微信unionid | ||
sina_weibo: {type: 'string'},//新浪微博 | ||
}, | ||
create_time: { | ||
@@ -21,0 +35,0 @@ type: 'second' |
@@ -52,2 +52,6 @@ 'use strict'; | ||
for (var map in mapping) { | ||
if (_lib2.default.isString(mapping[map]) && _lib2.default.isEmpty(mapping[map].type)) { | ||
delete mapping[map]; | ||
continue; | ||
} | ||
switch (mapping[map].type) { | ||
@@ -68,3 +72,3 @@ case 'second': | ||
//子对象,需要进一步解析 | ||
mapping[map] = { properties: parseMap(map) }; | ||
mapping[map] = { properties: parseMap(mapping[map]) }; | ||
break; | ||
@@ -71,0 +75,0 @@ case 'string': |
{ | ||
"name": "think_elasticsearch", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "基于elasticsearch.js的elasticsearch工具", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -10,2 +10,6 @@ /** | ||
for (let map in mapping) { | ||
if (lib.isString(mapping[map]) && lib.isEmpty(mapping[map].type)) { | ||
delete mapping[map] | ||
continue; | ||
} | ||
switch (mapping[map].type) { | ||
@@ -22,3 +26,3 @@ case 'second'://10位时间戳 | ||
case undefined://子对象,需要进一步解析 | ||
mapping[map] = {properties: parseMap(map)}; | ||
mapping[map] = {properties: parseMap(mapping[map])}; | ||
break; | ||
@@ -25,0 +29,0 @@ case 'string'://默认不进行Analysis not_analyzed |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
612950
4537