View Source GoogleApi.ContentWarehouse.V1.Model.WWWSnippetResponse (google_api_content_warehouse v0.3.0)
Per-document response for a www DocInfo request. Next field position: 55
Attributes
-
odp
(type:boolean()
, default:nil
) - Was odp used in the snippets? DEPRECATED - this is no longer populated as of June 2017. -
titleRenderedToken
(type:list(GoogleApi.ContentWarehouse.V1.Model.MustangSnippetsRenderedToken.t)
, default:nil
) - How tokens are rendered in generating title. Note: In rendering a title, the page title part and the site/host/domain title part can be flipped after initial rendering. The flip, if happened, may not be reflected in this field. That is, this field may contain the tokens in the original, pre-flip, order. -
snippetPrefixCharCount
(type:integer()
, default:nil
) - Character counts of snippet prefix, if any. E.g. section heading, list summary, byline date. -
obsoleteSitemap
(type:String.t
, default:nil
) - These fields were previously optional messages, but CL 2388905 moved them into the MessageSet. However, at this time, old Mustang binaries are still deployed in production and probably will be around for awhile. So, servers which need to talk to old binaries and need to use these fields need to check both the obsolete versions and the MessageSet version. Sitemap -
extraInfo
(type:GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponse.t
, default:nil
) - If requested, the extra snippet info -
sectionHeadingText
(type:String.t
, default:nil
) - If requested, the snippet generator may take note of query items present in an entry in an on-page table-of-contents (i.e. a series of on-page links to named anchors.) If so, these two fields contain the formatted and highlighted entry and the name of the on-page anchor it links to, respectively. This may be used by GWS to show a direct link to that named anchor on the page. -
docInfo
(type:GoogleApi.ContentWarehouse.V1.Model.WWWDocInfo.t
, default:nil
) - -
matchesBitmapEncoded
(type:String.t
, default:nil
) - Bitmap representing matches to leaf query terms within document (body section and url). It gets populated if query_matches_info = true. -
snippethash
(type:String.t
, default:nil
) - A hash for duplicate detection. Two results with the same content can return different snippets if, for example, one has an ODP entry and the other does not. Gws can use this value reliably to filter duplicates. It is a hash of body only tidbits. -
metaTags
(type:list(GoogleApi.ContentWarehouse.V1.Model.WWWMetaTag.t)
, default:nil
) - Meta tags -
keyword
(type:list(String.t)
, default:nil
) - Document keywords -
titleSizeParams
(type:GoogleApi.ContentWarehouse.V1.Model.TitleSizeParams.t
, default:nil
) - Will only be set whentitle_use_num_of_chars
is false. -
chosenBodyTidbits
(type:list(integer())
, default:nil
) - Tidbits chosen from the document body. Consists of repeated [begin, end) half-open ranges in token offsets from the beginning of the document. -
hasMessageType
(type:list(integer())
, default:nil
) - Additional available data (message type ids) -
events
(type:String.t
, default:nil
) - Bitfield of snippet events and the various events. See SnippetEvents in ./snippets/defines.h for details on the contents. -
numTokensSkippedByInDocRestrictionsInPrinting
(type:integer()
, default:nil
) - Similar to num_tokens_skipped_by_in_doc_restrictions_in_scoring, but this number is for tokens skipped during printing, since printer owns its own token info manager which populates tokens. -
snippetBylineDate
(type:String.t
, default:nil
) - Byline date for time sensitive snippets. Most of the time it originates from quality_timebased::SyntacticDate and it is floored to PT midnight. -
listSummary
(type:String.t
, default:nil
) - List summary phrase for list pages. -
snippetRenderedToken
(type:list(GoogleApi.ContentWarehouse.V1.Model.MustangSnippetsRenderedToken.t)
, default:nil
) - How tokens are rendered in generating snippet. -
sectionHeadingAnchorName
(type:String.t
, default:nil
) - -
obsoleteManybox
(type:String.t
, default:nil
) - ManyboxData -
orionEntities
(type:GoogleApi.ContentWarehouse.V1.Model.OrionDocEntitiesProto.t
, default:nil
) - DEPRECATED If requested, the orion entities -
sentimentSnippets
(type:list(GoogleApi.ContentWarehouse.V1.Model.RepositoryAnnotationsMustangSentimentSnippetAnnotations.t)
, default:nil
) - DEPRECATED Sentiment snippets -
findyTidbits
(type:integer()
, default:nil
) - A bitvector of the tidbits in the snippet that are appropriate for the Quick Scroll (Findy) Chrome extension. Typically these contain "extra body matches", i.e., important query items not in the title. -
answerDocMatches
(type:list(integer())
, default:nil
) - A list of answers that had at least one hit in the document. Answers are identified by their index into the QRewriteQueryParams_AnswerSnippetInfo array (see //query/proto/query-params.proto). -
scienceInfo
(type:GoogleApi.ContentWarehouse.V1.Model.ScienceIndexSignal.t
, default:nil
) - Abbreviated bibliographic data from Google Scholar. -
titleLengthAdjustedForBrowserWidth
(type:boolean()
, default:nil
) - True if the title length is already adjusted for the browser width. If it is true, GWS needs not truncate the title. -
snippetsRanklabFeatures
(type:GoogleApi.ContentWarehouse.V1.Model.MustangReposWwwSnippetsSnippetsRanklabFeatures.t
, default:nil
) - Records features to analyze titles/snippets in ranklab. -
isLoginPage
(type:boolean()
, default:nil
) - True if the document represents a login page. -
numberOfPages
(type:integer()
, default:nil
) - -
docPreviewRestrictionsForAmp
(type:GoogleApi.ContentWarehouse.V1.Model.QualityDniDocPreviewRestrictions.t
, default:nil
) - DocPreviewRestrictions for amp result. -
siteDisplayName
(type:String.t
, default:nil
) - The domain-level display name of the website, such as "Google" for google.com. See go/site-display-name for more details. As of Aug 2023, this field is being deprecated in favor ofinfo.[AlternativeTitlesResponse].site_display_name_response
field, which also contains host-level site display names with additional information. -
docPreviewRestrictions
(type:GoogleApi.ContentWarehouse.V1.Model.QualityDniDocPreviewRestrictions.t
, default:nil
) - DocPreviewRestrictions for canonical url. -
truncatedTitle
(type:String.t
, default:nil
) - Only for desktop web search. Please refer to Title.keep_original_title_and_populate_truncated_one for more details. -
snippetPageNumber
(type:integer()
, default:nil
) - If requested the page number on which the snippet begins. (Only for documents such as PDFs where page numbers are well-defined.) -
snippetExtraInfo
(type:GoogleApi.ContentWarehouse.V1.Model.SnippetExtraInfo.t
, default:nil
) - -
matchesBitmapSize
(type:integer()
, default:nil
) - -
seenNotTerm
(type:boolean()
, default:nil
) - Did a negative query term match the meta description? -
numTokensSkippedByInDocRestrictionsInScoring
(type:integer()
, default:nil
) - Number of tokens that is skipped because of in doc restrictions during scoring. This is an estimate, as the list of tokens is cached in TokenInfoManager. We should only monitor the cases where this number is too big or non-zero. -
snippetHighlightMatchesBitmap
(type:list(GoogleApi.ContentWarehouse.V1.Model.WWWSnippetResponseBitmapPB.t)
, default:nil
) - List of bitmaps representing matches to leaf query terms within each of the highlighted snippet text fragments. Consecutive bitmaps correspond to consecutive text fragments. It gets populated iff return_query_snippet_highlight_matches = true. Example: document body section: "This cafe has pet friendly patio." squery: (a (o dog :o pet :syn:general) friendly :o (o restaurant :o cafe :syn:general)) Let's assume the returned snippet text contains the whole document body section where two fragments get highlighted as follows: "This cafe has pet friendly patio." Then, the returned snippet_highlight_matches_bitmap[] list will have two bitmaps: bitmap[0] = <"cafe" -> leaf term with index 4> = {encoded: DenseEncode("00001"), size: 5} bitmap[1] = <"pet" and "friendly" -> leaf terms with indexes 1 and 2> = {encoded: DenseEncode("011"), size: 3} -
obsoleteLocalinfo
(type:String.t
, default:nil
) - LocalWWWInfo -
longStructuredSnippet
(type:GoogleApi.ContentWarehouse.V1.Model.LongStructuredSnippet.t
, default:nil
) - Returned if want_long_structured_snippets. If present, caller should ignore the normal snippet. -
listSnippet
(type:GoogleApi.ContentWarehouse.V1.Model.ListSnippetResponse.t
, default:nil
) - List snippet data. -
squeryFingerprint
(type:String.t
, default:nil
) - This field is never set. -
isValidResult
(type:boolean()
, default:nil
) - Assume this is true unless we discover that the result doesn't match the the query, in which case this result is invalid despite having returned docinfo. -
info
(type:GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t
, default:nil
) - Additional data. Currently, this is used for sitelinks, localinfo, manybox, discussion metadata, richsnippets, similarpages and breadcrumbs.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.ContentWarehouse.V1.Model.WWWSnippetResponse{ answerDocMatches: [integer()] | nil, chosenBodyTidbits: [integer()] | nil, docInfo: GoogleApi.ContentWarehouse.V1.Model.WWWDocInfo.t() | nil, docPreviewRestrictions: GoogleApi.ContentWarehouse.V1.Model.QualityDniDocPreviewRestrictions.t() | nil, docPreviewRestrictionsForAmp: GoogleApi.ContentWarehouse.V1.Model.QualityDniDocPreviewRestrictions.t() | nil, events: String.t() | nil, extraInfo: GoogleApi.ContentWarehouse.V1.Model.ExtraSnippetInfoResponse.t() | nil, findyTidbits: integer() | nil, hasMessageType: [integer()] | nil, info: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil, isLoginPage: boolean() | nil, isValidResult: boolean() | nil, keyword: [String.t()] | nil, listSnippet: GoogleApi.ContentWarehouse.V1.Model.ListSnippetResponse.t() | nil, listSummary: String.t() | nil, longStructuredSnippet: GoogleApi.ContentWarehouse.V1.Model.LongStructuredSnippet.t() | nil, matchesBitmapEncoded: String.t() | nil, matchesBitmapSize: integer() | nil, metaTags: [GoogleApi.ContentWarehouse.V1.Model.WWWMetaTag.t()] | nil, numTokensSkippedByInDocRestrictionsInPrinting: integer() | nil, numTokensSkippedByInDocRestrictionsInScoring: integer() | nil, numberOfPages: integer() | nil, obsoleteLocalinfo: String.t() | nil, obsoleteManybox: String.t() | nil, obsoleteSitemap: String.t() | nil, odp: boolean() | nil, orionEntities: GoogleApi.ContentWarehouse.V1.Model.OrionDocEntitiesProto.t() | nil, scienceInfo: GoogleApi.ContentWarehouse.V1.Model.ScienceIndexSignal.t() | nil, sectionHeadingAnchorName: String.t() | nil, sectionHeadingText: String.t() | nil, seenNotTerm: boolean() | nil, sentimentSnippets: [ GoogleApi.ContentWarehouse.V1.Model.RepositoryAnnotationsMustangSentimentSnippetAnnotations.t() ] | nil, siteDisplayName: String.t() | nil, snippetBylineDate: String.t() | nil, snippetExtraInfo: GoogleApi.ContentWarehouse.V1.Model.SnippetExtraInfo.t() | nil, snippetHighlightMatchesBitmap: [GoogleApi.ContentWarehouse.V1.Model.WWWSnippetResponseBitmapPB.t()] | nil, snippetPageNumber: integer() | nil, snippetPrefixCharCount: integer() | nil, snippetRenderedToken: [GoogleApi.ContentWarehouse.V1.Model.MustangSnippetsRenderedToken.t()] | nil, snippethash: String.t() | nil, snippetsRanklabFeatures: GoogleApi.ContentWarehouse.V1.Model.MustangReposWwwSnippetsSnippetsRanklabFeatures.t() | nil, squeryFingerprint: String.t() | nil, titleLengthAdjustedForBrowserWidth: boolean() | nil, titleRenderedToken: [GoogleApi.ContentWarehouse.V1.Model.MustangSnippetsRenderedToken.t()] | nil, titleSizeParams: GoogleApi.ContentWarehouse.V1.Model.TitleSizeParams.t() | nil, truncatedTitle: String.t() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.