Class SearchHit

java.lang.Object
com.microsoft.graph.models.SearchHit
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class SearchHit extends Object implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Search Hit.
  • Field Details

    • oDataType

      @SerializedName("@odata.type") @Expose @Nullable public String oDataType
      the OData type of the object as returned by the service
    • contentSource

      @SerializedName(value="contentSource", alternate="ContentSource") @Expose @Nullable public String contentSource
      The Content Source. The name of the content source that the externalItem is part of.
    • hitId

      @SerializedName(value="hitId", alternate="HitId") @Expose @Nullable public String hitId
      The Hit Id. The internal identifier for the item. The format of the identifier varies based on the entity type. For details, see hitId format.
    • isCollapsed

      @SerializedName(value="isCollapsed", alternate="IsCollapsed") @Expose @Nullable public Boolean isCollapsed
      The Is Collapsed. Indicates whether the current result is collapsed when the collapseProperties property in the searchRequest is used.
    • rank

      @SerializedName(value="rank", alternate="Rank") @Expose @Nullable public Integer rank
      The Rank. The rank or the order of the result.
    • resultTemplateId

      @SerializedName(value="resultTemplateId", alternate="ResultTemplateId") @Expose @Nullable public String resultTemplateId
      The Result Template Id. ID of the result template used to render the search result. This ID must map to a display layout in the resultTemplates dictionary that is also included in the searchResponse.
    • summary

      @SerializedName(value="summary", alternate="Summary") @Expose @Nullable public String summary
      The Summary. A summary of the result, if a summary is available.
    • resource

      @SerializedName(value="resource", alternate="Resource") @Expose @Nullable public Entity resource
      The Resource.
  • Constructor Details

    • SearchHit

      public SearchHit()
  • Method Details

    • additionalDataManager

      @Nonnull public final com.microsoft.graph.serializer.AdditionalDataManager additionalDataManager()
      Specified by:
      additionalDataManager in interface com.microsoft.graph.serializer.IJsonBackedObject
    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to