Package org.codelibs.fess.chat
Class ChatContentRequest
java.lang.Object
org.codelibs.fess.chat.ChatContentRequest
Request object for
ChatContentFetcher. Carries the relevant document
ids (in search-score order), the search-phase result maps (which contain
content_length and highlight snippets), and the query used to
highlight large documents.-
Field Summary
FieldsModifier and TypeFieldDescriptionRelevant document ids, in search-score order.protected final StringQuery used to highlight large documents; blank/null disables highlighting (full fetch).Search-phase result maps (with content_length); may be empty for the summary path. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
docIds
Relevant document ids, in search-score order. -
searchResults
Search-phase result maps (with content_length); may be empty for the summary path. -
query
Query used to highlight large documents; blank/null disables highlighting (full fetch).
-
-
Constructor Details
-
ChatContentRequest
public ChatContentRequest(List<String> docIds, List<Map<String, Object>> searchResults, String query) Creates a new request.- Parameters:
docIds- relevant document ids in score ordersearchResults- search-phase result maps (may be empty)query- query used to highlight large documents (may be null/blank)
-
-
Method Details
-
getDocIds
Returns the relevant document ids.- Returns:
- the document ids
-
getSearchResults
Returns the search-phase result maps.- Returns:
- the search results (may be empty)
-
getQuery
Returns the highlight query.- Returns:
- the query (may be null/blank)
-