SnippetsLeadingtextLeadingTextInfo

AI Overview😉

  • The potential purpose of this module is to identify and extract the most relevant and important text from a webpage, known as the "leading text", which is the text that appears at the top of a page and is most likely to summarize the content of the page. This module aims to determine the start position of this leading text, its type, and its content.
  • This module could impact search results by influencing the ranking of webpages based on the relevance and quality of their leading text. Webpages with clear, concise, and relevant leading text may be ranked higher in search results, while those with poor or irrelevant leading text may be ranked lower. This could also affect the snippet or summary that appears in search results, as the leading text may be used to generate this snippet.
  • To be more favorable for this function, a website may want to ensure that their leading text is clear, concise, and relevant to the content of the page. This could involve using header tags (e.g. H1, H2) to highlight important text, breaking up long blocks of text into shorter paragraphs, and using descriptive and keyword-rich text at the top of the page. Additionally, ensuring that the leading text is easily crawlable and indexable by search engines may also improve the website's ranking.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

GoogleApi.ContentWarehouse.V1.Model.SnippetsLeadingtextLeadingTextInfo (google_api_content_warehouse v0.4.0)

Attributes

  • beginPos (type: integer(), default: nil) - Leading text start position, byte offset of page content. The offset is got in ParseMaster. So it is the offset after the content is converted to UTF8.
  • leadingtext (type: list(GoogleApi.ContentWarehouse.V1.Model.SnippetsLeadingtextLeadingTextAnnotation.t), default: nil) - Note: You can also use it to save multiple leading text candidates.
  • text (type: String.t, default: nil) - UTF8 text, for alignment when using reusableinfo. The text is not available in docjoins.
  • type (type: String.t, default: nil) - Type of leading text which is optimized for this type of document.

Summary

Types

t()

Functions

decode(value, options)

Unwrap a decoded JSON object into its complex fields.

Types

Link to this type

t()

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.SnippetsLeadingtextLeadingTextInfo{
  beginPos: integer() | nil,
  leadingtext:
    [
      GoogleApi.ContentWarehouse.V1.Model.SnippetsLeadingtextLeadingTextAnnotation.t()
    ]
    | nil,
  text: String.t() | nil,
  type: String.t() | nil
}

Functions

Link to this function

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.