Skip to content

Commit 97305da

Browse files
committed
Bug fix in _parseSearchHit function.
1 parent 9c9aec6 commit 97305da

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

README-EN.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414

1515
## Version Feature Updates
16+
- Version: 5.5.1
17+
- Bug fix in _parseSearchHit function.
1618
- Version: 5.5.0
1719
- Search: GroupByDateHistogram
1820
- GroupByHistogram Support Offset Parameter

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414

1515
## 版本特性
16+
- 版本: 5.5.1
17+
- Bug fix in _parseSearchHit function.
1618
- 版本: 5.5.0
1719
- Search 新增:GroupByDateHistogram 功能
1820
- GroupByHistogram 支持 offset 参数

lib/protocol/decoder.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ TableStore.decoder = {
288288
if(response.rows.length !== response.searchHits.length && response.searchHits.length !== 0) {
289289
console.log("the row count is not equal to search extra result item count in server response body, ignore the search extra result items.");
290290
} else {
291-
for (var i in response.searchHits) {
292-
result.searchHits.push(TableStore.decoder._parseSearchHit(response.searchHits[i], response.rows[i]));
291+
for (let i in response.searchHits) {
292+
result.searchHits.push(TableStore.decoder._parseSearchHit(response.searchHits[i], rows[i]));
293293
}
294294
}
295295
if (response.consumed) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "tablestore",
33
"main": "index.js",
44
"description": "TableStore SDK for JavaScript",
5-
"version": "5.5.0",
5+
"version": "5.5.1",
66
"devDependencies": {
77
"mocha": "^3.2.0",
88
"coveralls": "^2.13.1",

0 commit comments

Comments
 (0)