public sealed class SearchRequest.Types.ContentSearchSpec.Types.ChunkSpec : IMessage<SearchRequest.Types.ContentSearchSpec.Types.ChunkSpec>, IEquatable<SearchRequest.Types.ContentSearchSpec.Types.ChunkSpec>, IDeepCloneable<SearchRequest.Types.ContentSearchSpec.Types.ChunkSpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class SearchRequest.Types.ContentSearchSpec.Types.ChunkSpec.
Specifies the chunk spec to be returned from the search response.
Only available if the
[SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode]
is set to
[CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
The number of previous chunks to be returned of the current chunk. The
maximum allowed value is 3.
If not specified, no previous chunks will be returned.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eSearchRequest.Types.ContentSearchSpec.Types.ChunkSpec\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChunkSpec\u003c/code\u003e class specifies how to handle chunk data in search responses, and is only available when \u003ccode\u003eSearchRequest.ContentSearchSpec.search_result_mode\u003c/code\u003e is set to \u003ccode\u003eCHUNKS\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe document includes various versions of the \u003ccode\u003eChunkSpec\u003c/code\u003e class, ranging from version 1.0.0-beta06 to the latest version, 1.6.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains properties \u003ccode\u003eNumNextChunks\u003c/code\u003e and \u003ccode\u003eNumPreviousChunks\u003c/code\u003e to define the number of next and previous chunks returned, with a maximum allowed value of 3 for each.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eChunkSpec\u003c/code\u003e implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]