think_elasticsearch
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -34,3 +34,3 @@ 'use strict'; | ||
this.safe = false; | ||
this.index = 'apsystem'; | ||
this.index = 'apsystem_2'; | ||
this.type = 'book'; | ||
@@ -37,0 +37,0 @@ this._mapping = { |
@@ -13,3 +13,3 @@ /** | ||
this.safe = false; | ||
this.index = 'apsystem'; | ||
this.index = 'apsystem_2'; | ||
this.type = 'book'; | ||
@@ -16,0 +16,0 @@ this._mapping = { |
@@ -248,4 +248,2 @@ 'use strict'; | ||
return data; | ||
}).catch(function (err) { | ||
console.log(err); | ||
}); | ||
@@ -252,0 +250,0 @@ }; |
@@ -300,3 +300,3 @@ 'use strict'; | ||
_class.prototype.setIndex = function setIndex(index) { | ||
this.__options.index = index; | ||
this.index = index; | ||
return this; | ||
@@ -306,3 +306,3 @@ }; | ||
_class.prototype.setType = function setType(type) { | ||
this.__options.type = type; | ||
this.type = type; | ||
return this; | ||
@@ -621,5 +621,7 @@ }; | ||
parsedOptions = _context5.sent; | ||
console.log(parsedOptions); | ||
return _context5.abrupt('return', this.adapter().select(parsedOptions)); | ||
case 4: | ||
case 5: | ||
case 'end': | ||
@@ -626,0 +628,0 @@ return _context5.stop(); |
{ | ||
"name": "think_elasticsearch", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "基于elasticsearch.js的elasticsearch工具", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -156,4 +156,2 @@ /** | ||
return data; | ||
}).catch(err=> { | ||
console.log(err) | ||
}) | ||
@@ -160,0 +158,0 @@ } |
@@ -241,3 +241,3 @@ /** | ||
setIndex(index) { | ||
this.__options.index = index; | ||
this.index = index; | ||
return this; | ||
@@ -247,3 +247,3 @@ } | ||
setType(type) { | ||
this.__options.type = type; | ||
this.type = type; | ||
return this; | ||
@@ -419,2 +419,3 @@ } | ||
let parsedOptions = await this._parseOptions(options); | ||
console.log(parsedOptions) | ||
return this.adapter().select(parsedOptions); | ||
@@ -421,0 +422,0 @@ } |
@@ -19,14 +19,14 @@ /** | ||
bookM | ||
//.filter({ | ||
// price: {between: [10, 100]}, | ||
// //or: [{goods: 'java'}, {goods: 'meat'}, {price: {gt: 1000}}], | ||
// //not: [{goods: 'java'}, {goods: 'meat'}, {price: {gt: 1000}}], | ||
//}) | ||
//.match({ | ||
// or: [{goods: 'java'}, {goods: 'meat'}, {price: {gt: 1000}}], | ||
// not: [{goods: 'java'}, {goods: 'meat'}, {price: {gt: 1000}}], | ||
//}) | ||
//.filter({ | ||
// price: {between: [10, 100]}, | ||
// //or: [{goods: 'java'}, {goods: 'meat'}, {price: {gt: 1000}}], | ||
// //not: [{goods: 'java'}, {goods: 'meat'}, {price: {gt: 1000}}], | ||
//}) | ||
//.match({ | ||
// or: [{goods: 'java'}, {goods: 'meat'}, {price: {gt: 1000}}], | ||
// not: [{goods: 'java'}, {goods: 'meat'}, {price: {gt: 1000}}], | ||
//}) | ||
.setIndex('apsystem_*') | ||
.select().then(res => { | ||
console.log(res.hits.hits) | ||
}) |
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
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
687534
5145