Package org.codelibs.fess.app.web.api
Class ApiResult.ApiDocsResponse
java.lang.Object
org.codelibs.fess.app.web.api.ApiResult.ApiResponse
org.codelibs.fess.app.web.api.ApiResult.ApiDocsResponse
- Enclosing class:
ApiResult
Represents an API response for search results, including document list, pagination, and facet information.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe list of documents returned in the search results.protected longThe ending record number for the current page of search results.protected StringThe execution time of the search query.The list of facet fields and their values.The list of facet queries and their counts.protected StringParameters for highlighting search results.protected booleanIndicates if there is a next page of search results.protected intThe total number of pages in the search results.protected intThe current page number of the search results.The list of page numbers for pagination.protected intThe page size of the search results.protected booleanIndicates if the search results are partial.protected booleanIndicates if there is a previous page of search results.protected StringThe ID of the search query.protected longThe time taken for the search query in milliseconds.protected longThe total number of records found.protected StringThe relation of the record count (e.g., "eq" for exact, "gte" for greater than or equal to).protected longThe time when the search request was made.protected StringThe search query string.protected longThe starting record number for the current page of search results.Fields inherited from class org.codelibs.fess.app.web.api.ApiResult.ApiResponse
status, version -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrenderData(SearchRenderData data) Populates this response with search render data.result()Returns a new ApiResult instance with this ApiResponse.Methods inherited from class org.codelibs.fess.app.web.api.ApiResult.ApiResponse
status
-
Field Details
-
queryId
The ID of the search query. -
docs
The list of documents returned in the search results. -
highlightParams
Parameters for highlighting search results. -
execTime
The execution time of the search query. -
pageSize
protected int pageSizeThe page size of the search results. -
pageNumber
protected int pageNumberThe current page number of the search results. -
recordCount
protected long recordCountThe total number of records found. -
recordCountRelation
The relation of the record count (e.g., "eq" for exact, "gte" for greater than or equal to). -
pageCount
protected int pageCountThe total number of pages in the search results. -
nextPage
protected boolean nextPageIndicates if there is a next page of search results. -
prevPage
protected boolean prevPageIndicates if there is a previous page of search results. -
startRecordNumber
protected long startRecordNumberThe starting record number for the current page of search results. -
endRecordNumber
protected long endRecordNumberThe ending record number for the current page of search results. -
pageNumbers
The list of page numbers for pagination. -
partial
protected boolean partialIndicates if the search results are partial. -
queryTime
protected long queryTimeThe time taken for the search query in milliseconds. -
searchQuery
The search query string. -
requestedTime
protected long requestedTimeThe time when the search request was made. -
facetField
The list of facet fields and their values. -
facetQuery
The list of facet queries and their counts.
-
-
Constructor Details
-
ApiDocsResponse
public ApiDocsResponse()Default constructor for ApiDocsResponse.
-
-
Method Details
-
renderData
Populates this response with search render data.- Parameters:
data- The search render data to populate from.- Returns:
- This ApiDocsResponse instance.
-
result
Description copied from class:ApiResult.ApiResponseReturns a new ApiResult instance with this ApiResponse.- Overrides:
resultin classApiResult.ApiResponse- Returns:
- A new ApiResult instance.
-