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 page 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\u003e\u003ccode\u003eChunkSpec\u003c/code\u003e defines the specifications for the chunk results that are returned when the \u003ccode\u003esearch_result_mode\u003c/code\u003e is set to \u003ccode\u003eCHUNKS\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThis 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.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChunkSpec\u003c/code\u003e class includes properties \u003ccode\u003eNumNextChunks\u003c/code\u003e and \u003ccode\u003eNumPreviousChunks\u003c/code\u003e to control how many additional chunks are returned before and after the current chunk.\u003c/p\u003e\n"],["\u003cp\u003eThis page also lists all the previous versions of this class, from \u003ccode\u003e1.0.0-beta06\u003c/code\u003e to the latest \u003ccode\u003e1.6.0\u003c/code\u003e version.\u003c/p\u003e\n"]]],[],null,[]]