SdrScrollTo

AI Overview😉

  • The potential purpose of this module is to help users quickly find specific text on a webpage by providing a "scroll-to" functionality, which allows the browser to jump to a specific part of the page where the searched text is located.
  • This module could impact search results by influencing the ranking of pages that have the searched text. Pages that have the exact text match, along with a clear prefix and suffix to disambiguate multiple matches, may be ranked higher than those without. This could lead to a better user experience, as users are more likely to find what they're looking for quickly.
  • A website may change things to be more favorable for this function by ensuring that their content is structured in a way that makes it easy for the algorithm to identify specific text spans. This could be achieved by using clear and descriptive headings, breaking up long blocks of text into smaller paragraphs, and using semantic HTML elements to provide context to the content. Additionally, optimizing content to have clear and unique prefixes and suffixes for specific text matches could also improve the website's ranking.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

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

Data needed to construct a go/scroll-to text fragment. The url fragment is: #:~:text=[prefix-,]text_start,text_end

Attributes

  • onpageMatches (type: GoogleApi.ContentWarehouse.V1.Model.SdrScrollToOnPageMatches.t, default: nil) -
  • prefix (type: String.t, default: nil) - Prefix to help with disambiguating between multiple text matches on page. Optional.
  • suffix (type: String.t, default: nil) - Suffix to help with disambiguating between multiple text matches on page. Optional.
  • textEnd (type: String.t, default: nil) - End of the text span to be highlighted. Optional.
  • textStart (type: String.t, default: nil) - Start of the text span to be highlighted.

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.SdrScrollTo{
  onpageMatches:
    GoogleApi.ContentWarehouse.V1.Model.SdrScrollToOnPageMatches.t() | nil,
  prefix: String.t() | nil,
  suffix: String.t() | nil,
  textEnd: String.t() | nil,
  textStart: 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.