Package org.codelibs.fess.rank.fusion
Class SearchResult
java.lang.Object
org.codelibs.fess.rank.fusion.SearchResult
Represents the result of a search operation in the rank fusion system.
This class encapsulates all the information returned from a search query,
including the list of matching documents, total record count, query execution
time, facet information, and metadata about the search results.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final longThe total number of records that match the search criteria.protected final StringThe relation type indicating how the record count should be interpreted (e.g., "eq", "gte").The list of documents returned by the search query.protected final FacetResponseThe facet response containing aggregated facet information for the search results.protected final booleanFlag indicating whether the search results are partial due to timeout or other constraints.protected final longThe time taken to execute the search query in milliseconds. -
Method Summary
Modifier and TypeMethodDescriptionstatic org.codelibs.fess.rank.fusion.SearchResult.SearchResultBuildercreate()Creates a new SearchResultBuilder for constructing SearchResult instances.longGets the total number of records that match the search criteria.Gets the relation type indicating how the record count should be interpreted.Gets the list of documents returned by the search query.Gets the facet response containing aggregated facet information.longGets the time taken to execute the search query.booleanChecks whether the search results are partial due to timeout or other constraints.toString()
-
Field Details
-
documentList
The list of documents returned by the search query. -
allRecordCount
protected final long allRecordCountThe total number of records that match the search criteria. -
allRecordCountRelation
The relation type indicating how the record count should be interpreted (e.g., "eq", "gte"). -
queryTime
protected final long queryTimeThe time taken to execute the search query in milliseconds. -
partialResults
protected final boolean partialResultsFlag indicating whether the search results are partial due to timeout or other constraints. -
facetResponse
The facet response containing aggregated facet information for the search results.
-
-
Method Details
-
getDocumentList
Gets the list of documents returned by the search query.- Returns:
- The list of search result documents
-
getAllRecordCount
public long getAllRecordCount()Gets the total number of records that match the search criteria.- Returns:
- The total record count
-
getAllRecordCountRelation
Gets the relation type indicating how the record count should be interpreted.- Returns:
- The record count relation (e.g., "eq" for exact, "gte" for greater than or equal)
-
getQueryTime
public long getQueryTime()Gets the time taken to execute the search query.- Returns:
- The query execution time in milliseconds
-
isPartialResults
public boolean isPartialResults()Checks whether the search results are partial due to timeout or other constraints.- Returns:
- true if the results are partial, false if complete
-
getFacetResponse
Gets the facet response containing aggregated facet information.- Returns:
- The facet response, or null if no facets were requested
-
create
public static org.codelibs.fess.rank.fusion.SearchResult.SearchResultBuilder create()Creates a new SearchResultBuilder for constructing SearchResult instances.- Returns:
- A new SearchResultBuilder instance
-
toString
-