owl-cli 6.108.0 → 6.110.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.
|
@@ -208,6 +208,19 @@ function buildSort(sort){
|
|
|
208
208
|
var s = HttpUtils.postRaw( searchUrl, sndTxt, headers);
|
|
209
209
|
var result = JSON.parse(s);
|
|
210
210
|
|
|
211
|
+
if(!result.hits || !result.hits.hits){
|
|
212
|
+
// $.log("error search:sndQuery=" + sndTxt + "------\nresponse:\n" + s );
|
|
213
|
+
var ret = {
|
|
214
|
+
state:'ok',
|
|
215
|
+
list:[],
|
|
216
|
+
total:{value:0},
|
|
217
|
+
count:0
|
|
218
|
+
}
|
|
219
|
+
out.print(JSON.stringify(ret));
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
|
|
211
224
|
var hits = result.hits.hits;
|
|
212
225
|
var total = result.hits.total;
|
|
213
226
|
|