public sealed class SearchRequest.Types.ContentSearchSpec : IMessage<SearchRequest.Types.ContentSearchSpec>, IEquatable<SearchRequest.Types.ContentSearchSpec>, IDeepCloneable<SearchRequest.Types.ContentSearchSpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1beta API class SearchRequest.Types.ContentSearchSpec.
A specification for configuring the behavior of content search.
public SearchRequest.Types.ContentSearchSpec.Types.ChunkSpec ChunkSpec { get; set; }
Specifies the chunk spec to be returned from the search response.
Only available if the
[SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
is set to
[CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
[[["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\u003c/code\u003e class within the Google Cloud Discovery Engine v1beta API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eContentSearchSpec\u003c/code\u003e configures the behavior of content searches, allowing customization of the search result mode and the inclusion of chunks, extractive content, snippets, and summaries.\u003c/p\u003e\n"],["\u003cp\u003eThe class 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, enabling it to perform in various data manipulation and comparison tasks.\u003c/p\u003e\n"],["\u003cp\u003eThe class supports different search result modes and, via its properties, you can specify if the search results should include content chunks, extractive answers, snippets, or document summaries.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContentSearchSpec\u003c/code\u003e class has public constructors, one is parameterless and another one takes a \u003ccode\u003eContentSearchSpec\u003c/code\u003e object as a parameter, used for creation or copying of instances.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class SearchRequest.Types.ContentSearchSpec (1.0.0-beta19)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta19 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchRequest.Types.ContentSearchSpec)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.SearchRequest.Types.ContentSearchSpec) \n\n public sealed class SearchRequest.Types.ContentSearchSpec : IMessage\u003cSearchRequest.Types.ContentSearchSpec\u003e, IEquatable\u003cSearchRequest.Types.ContentSearchSpec\u003e, IDeepCloneable\u003cSearchRequest.Types.ContentSearchSpec\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1beta API class SearchRequest.Types.ContentSearchSpec.\n\nA specification for configuring the behavior of content search. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SearchRequest.Types.ContentSearchSpec \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SearchRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchRequest)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchRequest.Types)[ContentSearchSpec](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchRequest.Types.ContentSearchSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SearchRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchRequest)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchRequest.Types)[ContentSearchSpec](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchRequest.Types.ContentSearchSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SearchRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchRequest)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchRequest.Types)[ContentSearchSpec](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchRequest.Types.ContentSearchSpec), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DiscoveryEngine.V1Beta](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1Beta.dll\n\nConstructors\n------------\n\n### ContentSearchSpec()\n\n public ContentSearchSpec()\n\n### ContentSearchSpec(ContentSearchSpec)\n\n public ContentSearchSpec(SearchRequest.Types.ContentSearchSpec other)\n\nProperties\n----------\n\n### ChunkSpec\n\n public SearchRequest.Types.ContentSearchSpec.Types.ChunkSpec ChunkSpec { get; set; }\n\nSpecifies the chunk spec to be returned from the search response.\nOnly available if the\n\\[SearchRequest.ContentSearchSpec.search_result_mode\\]\\[google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode\\]\nis set to\n\\[CHUNKS\\]\\[google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS\\]\n\n### ExtractiveContentSpec\n\n public SearchRequest.Types.ContentSearchSpec.Types.ExtractiveContentSpec ExtractiveContentSpec { get; set; }\n\nIf there is no extractive_content_spec provided, there will be no\nextractive answer in the search response.\n\n### SearchResultMode\n\n public SearchRequest.Types.ContentSearchSpec.Types.SearchResultMode SearchResultMode { get; set; }\n\nSpecifies the search result mode. If unspecified, the\nsearch result mode defaults to `DOCUMENTS`.\n\n### SnippetSpec\n\n public SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec SnippetSpec { get; set; }\n\nIf `snippetSpec` is not specified, snippets are not included in the\nsearch response.\n\n### SummarySpec\n\n public SearchRequest.Types.ContentSearchSpec.Types.SummarySpec SummarySpec { get; set; }\n\nIf `summarySpec` is not specified, summaries are not included in the\nsearch response."]]