Class ChatContentRequest

java.lang.Object
org.codelibs.fess.chat.ChatContentRequest

public class ChatContentRequest extends Object
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 Details

    • docIds

      protected final List<String> docIds
      Relevant document ids, in search-score order.
    • searchResults

      protected final List<Map<String,Object>> searchResults
      Search-phase result maps (with content_length); may be empty for the summary path.
    • query

      protected final String 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 order
      searchResults - search-phase result maps (may be empty)
      query - query used to highlight large documents (may be null/blank)
  • Method Details

    • getDocIds

      public List<String> getDocIds()
      Returns the relevant document ids.
      Returns:
      the document ids
    • getSearchResults

      public List<Map<String,Object>> getSearchResults()
      Returns the search-phase result maps.
      Returns:
      the search results (may be empty)
    • getQuery

      public String getQuery()
      Returns the highlight query.
      Returns:
      the query (may be null/blank)