lookupStrategy property

String? lookupStrategy
getter/setter pair

The lookup_strategy being requested. Possible string values are:

  • "FETCH_LIVE_DOC" : FETCH_LIVE_DOC strategy involves live document fetch of URLs not found in the index. Any request URL not found in the index is crawled in realtime to validate if there is a corresponding AMP URL. This strategy has higher coverage but with extra latency introduced by realtime crawling. This is the default strategy. Applications using this strategy should set higher HTTP timeouts of the API calls.
  • "IN_INDEX_DOC" : IN_INDEX_DOC strategy skips fetching live documents of URL(s) not found in index. For applications which need low latency use of IN_INDEX_DOC strategy is recommended.

Implementation

core.String? lookupStrategy;