owl-cli 5.36.0 → 5.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,7 @@ var spec = @spec;
15
15
 
16
16
  function buildSort(sort){
17
17
  if(!sort){
18
- return null;
18
+ return {};
19
19
  }
20
20
  var result = [];
21
21
  for(var k in sort){
@@ -208,13 +208,16 @@ function buildSort(sort){
208
208
 
209
209
  var objs = hits.map(function(hit){return hit._source});
210
210
 
211
-
211
+ delete query.from;
212
+ delete query.size;
213
+ delete query.sort;
214
+ sndTxt = JSON.stringify(query);
212
215
  var countUrl = elasticSearchUrl+"/@projectCode/_count";
213
216
 
214
217
  var ss = HttpUtils.postRaw( countUrl, sndTxt, headers);
215
218
  var cr = JSON.parse(ss);
216
219
 
217
- var count = result.count;
220
+ var count = cr.count;
218
221
  //这里重新从pigeon取了一次数据,做了删除的判断
219
222
  // var ids = hits.map(function(hit){return hit._source.id});
220
223
  // var list = owl_wh_receiptService.getObjects(ids);
@@ -877,7 +877,7 @@ var @projectCodeService = (function (pigeon) {
877
877
  var filters = [];
878
878
  var must_not = [{
879
879
  term:{
880
- del:'T'
880
+ "del.keyword":'T'
881
881
  }
882
882
  }];
883
883
  for(var k in searchArgs){
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owl-cli",
3
- "version": "5.36.0",
3
+ "version": "5.39.0",
4
4
  "main": "index.js",
5
5
  "preferGlobal": true,
6
6
  "bin": {