Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Path to hits/total needs to be updated for ESV7 #678

Open
kjitin opened this issue May 27, 2020 · 2 comments
Open

Path to hits/total needs to be updated for ESV7 #678

kjitin opened this issue May 27, 2020 · 2 comments

Comments

@kjitin
Copy link

kjitin commented May 27, 2020

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

@chengning
Copy link

I also encountered this problem. Have you solved it?

@kjitin
Copy link
Author

kjitin commented Aug 6, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants