AnchorsAnchor

GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchor


Table of Contents ▼

Jump to a specific part of the page:

Description

No description given.

Attributes List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. creationDate (type: integer(), default: nil)
    - used for history - the first and last time we have seen this anchor. creation_date also used for Freshdocs Twitter indexing, a retweet is an anchor of the original tweet. This field records the time when a retweet is created.
  2. origText (type: String.t, default: nil)
    - Original text, including capitalization and punctuation. Runs of whitespace are collapsed into a single space.
  3. context2 (type: integer(), default: nil)
    - This is a hash of terms near the anchor. (This is a second-generation hash replacing the value stored in the 'context' field.)
  4. fontsize (type: integer(), default: nil)
    -
  5. experimental (type: boolean(), default: nil)
    - If true, the anchor is for experimental purposes and should not be used in serving.
  6. fragment (type: String.t, default: nil)
    - The URL fragment for this anchor (the foo in http://www.google.com#foo)
  7. sourceType (type: integer(), default: nil)
    - is to record the quality of the anchor's source page and is correlated with but not identical to the index tier of the source page. In the docjoins built by the indexing pipeline (Alexandria), - Anchors marked TYPE_HIGH_QUALITY are from base documents. - Anchors marked TYPE_MEDIUM_QUALITY are from documents of medium quality (roughly but not exactly supplemental tier documents). - Anchors marked TYPE_LOW_QUALITY are from documents of low quality (roughly but not exactly blackhole documents). Note that the source_type can also be used as an importance indicator of an anchor (a lower source_type value indicates a more important anchor), so it is important to enforce that TYPE_HIGH_QUALITY < TYPE_MEDIUM_QUALITY < TYPE_LOW_QUALITY To add a new source type in future, please maintain the proper relationship among the types as well. TYPE_FRESHDOCS, only available in freshdocs indexing, is a special case and is considered the same type as TYPE_HIGH_QUALITY for the purpose of anchor importance in duplicate anchor removal.
  8. pagerankWeight (type: number(), default: nil)
    - Weight to be stored in linkmaps for pageranker
  9. isLocal (type: boolean(), default: nil)
    - The bit ~roughly~ indicates whether an anchor's source and target pages are on the same domain. Note: this plays no role in determining whether an anchor is onsite, ondomain, or offdomain in mustang (i.e., the bit above).
  10. originalTargetDocid (type: String.t, default: nil)
    - The docid of the anchor's original target. This field is available if and only if the anchor is forwarded.
  11. fullLeftContext (type: list(String.t), default: nil)
    - The full context. These are not written out in the linklogs.
  12. expired (type: boolean(), default: nil)
    - true iff exp domain
  13. catfishTags (type: list(integer()), default: nil)
    - CATfish tags attached to a link. These are similar to link tags, except the values are created on the fly within Cookbook. See: http://sites/cookbook/exporting/indexing
  14. deletionDate (type: integer(), default: nil)
    -
  15. linkTags (type: list(integer()), default: nil)
    - Contains info on link type, source page, etc.
  16. forwardingTypes (type: integer(), default: nil)
    - How the anchor is forwarded to the canonical, available only for forwarded anchors (i.e., the field is set). The forwarding types are defined in URLForwardingUtil (segindexer/segment-indexer-util.h). Always use URLForwardingUtil to access this field and use URLForwardingUtil::GetAnchorForwardingReason to get the explanation how the anchor is forwarded to the canonical. NOTE: Use with caution as it is only set for docjoins generated using the urlmap from repository/updater.
  17. possiblyOldFirstseenDate (type: boolean(), default: nil)
    - DEPRECATED. It used to be set if firstseen_date is not set. It's to indicate that the anchor is possibly old, but we don't have enough information to tell until the linkage map is updated. TODO(hxu) rename it to possibly_old_firstseen_date_DEPRECATED after clean up other dependencies.
  18. locality (type: integer(), default: nil)
    - For ranking purposes, the quality of an anchor is measured by its "locality" and "bucket". See quality/anchors/definitions.h for more information.
  19. demotionreason (type: integer(), default: nil)
    - DEPRECATED
  20. text (type: String.t, default: nil)
    - Space-delimited anchor words. Text that needs segmentation (like CJK or Thai) is unsegmented, since we set FLAGS_segment_during_lexing to false in mr-linkextractor.cc .
  21. source (type: GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchorSource, default: nil)
    -
  22. bucket (type: integer(), default: nil)
    -
  23. fullRightContext (type: list(String.t), default: nil)
    -
  24. targetUrlEncoding (type: integer(), default: nil)
    - A given target URL may be found in different encodings in different documents. We store the URL encoding with each source anchor so that we can count them later to find the encoding most likely to be expected by the Web site. Around 0.7% of target URLs are expected to require a non-default value here. The default value 0 is referenced in C++ as webutil::kDefaultUrlEncoding. See also webutil/urlencoding.
  25. compressedOriginalTargetUrl (type: String.t, default: nil)
    - The anchor's original target url, compressed. Available only in Alexandria docjoins when the anchor is forwarded.
  26. firstseenDate (type: integer(), default: nil)
    - # days past Dec 31, 1994, 23:00:00 UTC (Unix time @788914800) that this link was first seen. Should never occupy more than 15 bits. NOTE: this is NOT the same as creation_date; firstseen_date is filled during link extraction
  27. setiPagerankWeight (type: number(), default: nil)
    - TEMPORARY
  28. context (type: integer(), default: nil)
    -
  29. linkAdditionalInfo (type: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet, default: nil)
    - Additional information related to the anchor, such as additional anchor text or scores.
  30. type (type: integer(), default: nil)
    - DEPRECATED: Now in link_tags
  31. firstseenNearCreation (type: boolean(), default: nil)
    - true if we think 'firstseen_date' is an accurate estimate of when the link was actually added to the source page. false if it may have existed for some time before we saw it.
  32. lastUpdateTimestamp (type: integer(), default: nil)
    - Used for history and freshness tracking - the timestamp this anchor is updated in indexing.
  33. offset (type: integer(), default: nil)
    - This is the offset for the first term in the anchor - it can be used as a unique ID for the anchor within the document and compared against all per-tag data. This is measured in bytes from the start of the document. We write this out to the linklogs to recover the original order of links after source/target forwarding. This is necessary for computing the global related data.
  34. weight (type: integer(), default: nil)
    - weights are 0-127
  35. deleted (type: boolean(), default: nil)
    -
  36. encodedNewsAnchorData (type: integer(), default: nil)
    - Encoded data containing information about newsiness of anchor. Populated only if anchor is classified as coming from a newsy, high quality site. Encoded data for anchor sources are being stored in googledata/quality/freshness/news_anchors/encoded_news_anchors_data.txt Scores are being computed with quality/freshness/news_anchors/ routines.
  37. compressedImageUrls (type: list(String.t), default: nil)
    - If the anchor contained images, these image urls are stored here in compressed form.
  38. timestamp (type: String.t, default: nil)
    - This field is DEPRECATED and no longer filled. For source page crawl timestamp, use Source.crawl_timestamp. Next tag id should be 62.

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchor{
bucket: integer() | nil,
catfishTags: [integer()] | nil,
compressedImageUrls: [String.t()] | nil,
compressedOriginalTargetUrl: String.t() | nil,
context: integer() | nil,
context2: integer() | nil,
creationDate: integer() | nil,
deleted: boolean() | nil,
deletionDate: integer() | nil,
demotionreason: integer() | nil,
encodedNewsAnchorData: integer() | nil,
experimental: boolean() | nil,
expired: boolean() | nil,
firstseenDate: integer() | nil,
firstseenNearCreation: boolean() | nil,
fontsize: integer() | nil,
forwardingTypes: integer() | nil,
fragment: String.t() | nil,
fullLeftContext: [String.t()] | nil,
fullRightContext: [String.t()] | nil,
isLocal: boolean() | nil,
lastUpdateTimestamp: integer() | nil,
linkAdditionalInfo: GoogleApi.ContentWarehouse.V1.Model.Proto2BridgeMessageSet.t() | nil,
linkTags: [integer()] | nil,
locality: integer() | nil,
offset: integer() | nil,
origText: String.t() | nil,
originalTargetDocid: String.t() | nil,
pagerankWeight: number() | nil,
parallelLinks: integer() | nil,
possiblyOldFirstseenDate: boolean() | nil,
setiPagerankWeight: number() | nil,
source: GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchorSource.t() | nil,
sourceType: integer() | nil,
targetUrlEncoding: integer() | nil,
text: String.t() | nil,
timestamp: String.t() | nil,
type: integer() | nil,
weight: integer() | nil
}

Function

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

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.AnchorsAnchor