-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add "took" attribute to SearchHits/ReactiveSearchHits #2986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Fell free to add it; just a thought: I think we should use a better name than |
Thank you, @sothawo ! I can't think of a better name than I just wanted to point out that in the Elasticsearch Java API, the attribute is declared as Following a similar approach, we could retrieve the P.S.: Does this approach sound good to you? |
yes, we need this mapping to a |
Added support for retreving the query execution time from took() method of ResponseBody class as java.time.Duration in SearchDocumentResponseBuilder class. Closes spring-projects#2986
Added support for retreving the query execution time from took() method of ResponseBody class as java.time.Duration in SearchDocumentResponseBuilder class. Closes spring-projects#2986
Added support for retreving the query execution time from took() method of ResponseBody class as java.time.Duration in SearchDocumentResponseBuilder class. Closes spring-projects#2986
Added support for retreving the query execution time from took() method of ResponseBody class as java.time.Duration in SearchDocumentResponseBuilder class. Closes spring-projects#2986
Added support for retreving the query execution time from took() method of ResponseBody class as java.time.Duration in SearchDocumentResponseBuilder class. Closes spring-projects#2986
I am working on a Spring API that integrates with Elasticsearch, and my current task involves migrating from the Elasticsearch Java API Client to Spring Data Elasticsearch. While doing so, I noticed that the response body in the Elasticsearch Java API Client includes a valuable attribute called "took", which shows the time (in milliseconds) it took to complete the request. However, this attribute is not accessible in the SearchHits (or ReactiveSearchHits) body in Spring Data Elasticsearch.
This feature is important for performance monitoring and debugging, as it allows developers to measure the responsiveness of Elasticsearch queries.
I propose adding support for retrieving the "took" attribute from SearchHits objects in Spring Data Elasticsearch, ensuring feature parity with the Elasticsearch Java API Client. This enhancement would improve the developer experience by providing essential timing information for queries.
I would be happy to contribute to this feature by submitting a PR if accepted. Thank you!
The text was updated successfully, but these errors were encountered: