Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

think_elasticsearch

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

think_elasticsearch - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

2

exmple/model/lib/book.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc