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 documentation for the \u003ccode\u003eSearchRequest.Types.ContentSearchSpec.Types.ChunkSpec\u003c/code\u003e class within the Discovery Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChunkSpec\u003c/code\u003e class is used to define the specification for chunks returned in a search response, but it is only functional if the \u003ccode\u003esearch_result_mode\u003c/code\u003e is set to \u003ccode\u003eCHUNKS\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChunkSpec\u003c/code\u003e class offers properties to control the number of \u003ccode\u003eNumNextChunks\u003c/code\u003e and \u003ccode\u003eNumPreviousChunks\u003c/code\u003e returned, with a maximum of 3 for each.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChunkSpec\u003c/code\u003e class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its role in message handling and data manipulation.\u003c/p\u003e\n"],["\u003cp\u003eThe code provided also includes documentation for different versions of the API, ranging from 1.0.0-beta06 to 1.6.0.\u003c/p\u003e\n"]]],[],null,[]]