Class QueryResource
The "query" collection of methods.
Inheritance
System.Object
QueryResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudSearch.v1
Assembly: Google.Apis.CloudSearch.v1.dll
Syntax
public class QueryResource
Constructors
QueryResource(IClientService)
Constructs a new resource.
Declaration
public QueryResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
Sources
Gets the Sources resource.
Declaration
public virtual QueryResource.SourcesResource Sources { get; }
Property Value
| Type | Description |
|---|---|
| QueryResource.SourcesResource |
Methods
Search(SearchRequest)
The Cloud Search Query API provides the search method, which returns the most relevant results from a user query. The results can come from G Suite Apps, such as Gmail or Google Drive, or they can come from data that you have indexed from a third party.
Declaration
public virtual QueryResource.SearchRequest Search(SearchRequest body)
Parameters
| Type | Name | Description |
|---|---|---|
| SearchRequest | body | The body of the request. |
Returns
| Type | Description |
|---|---|
| QueryResource.SearchRequest |
Suggest(SuggestRequest)
Provides suggestions for autocompleting the query.
Declaration
public virtual QueryResource.SuggestRequest Suggest(SuggestRequest body)
Parameters
| Type | Name | Description |
|---|---|---|
| SuggestRequest | body | The body of the request. |
Returns
| Type | Description |
|---|---|
| QueryResource.SuggestRequest |