Expose meta-information about the query execution (execution time, timeout, ...)

Description

The goal would be to replace these (Elasticsearch-only) projections from Search 5:

  • org.hibernate.search.elasticsearch.ElasticsearchProjectionConstants#TOOK

  • org.hibernate.search.elasticsearch.ElasticsearchProjectionConstants#TIMED_OUT

This information is global to the request, so it does not make much sense to expose it to the user as a projection. A better approach, maybe, would be to expose additional getters on SearchResult? We may be able to include additional metadata, such as loading time.

Related:

Environment

None

Status

Assignee

Fabio Massimo Ercoli

Reporter

Yoann Rodière

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Fix versions

Priority

Major
Configure