searchbox-io/Jest

Path to hits/total needs to be updated for ESV7

kjitin opened this issue · 2 comments

ES V5.6.3 used to display the number of hits as
hits: {
total: 16561096
}

ES7 displays hits as
hits: {
total: {
value: 49
}
}
The PATH_TO_TOTAL in SearchResult needs to be changed so that it can find the total in the proper format

I also encountered this problem. Have you solved it?

Solved it by handling it my side by checking if the results were JsonObject and then deserializing it