Class SearchParamsBuilder

Constructors

Properties

maxResults: number

The maximum value of results that the blogger feed api can retrieve.

This number is representative, the actual value may be much lower.

Methods

  • Changes the maximum number of results to be retrieved.

    Parameters

    • max: Maybe<string | number>

      The max value. The minimum value is 1.

    Returns this

  • Changes the maximum number of results to be retrieved.

    Alias.

    Parameters

    • limit: Maybe<string | number>

      The max value. The minimum value is 1.

    Returns this

    builder.limit(limit) // .max(limit)
    
  • Changes the 1-based index of the first result to be retrieved.

    Blogger API Note

    • This isn't a general cursoring mechanism. If you first send a query with ?start-index=1&max-results=10 and then send another query with ?start-index=11&max-results=10, the service cannot guarantee that the results are equivalent to ?start-index=1&max-results=20, because insertions and deletions could have taken place in between the two queries.

    Parameters

    • index: Maybe<string | number>

      The index value.

    Returns this

  • Adds the given index to the current start index.

    Parameters

    • index: number

      The value to add.

    Returns this

  • Subtracts the given index from the current start index.

    Parameters

    • index: number

      The value to subtract.

    Returns this

  • Changes the 1-based index of the first result to be retrieved.

    Alias.

    Parameters

    • index: Maybe<string | number>

      The index value.

    Returns this

    builder.index(index) //.start(index)
    
  • Adds the given index to the current start index.

    Parameters

    • index: number

      The value to add.

    Returns this

  • Subtracts the given index from the current start index.

    Parameters

    • index: number

      The value to subtract.

    Returns this

  • Changes the 1-based index of the first result to be retrieved according to the max value.

    Parameters

    • page: Maybe<string | number>

      The page value. The minimum is 0.

    Returns this

    builder.max(10)
    .paginated(2) // .start(11)
  • Changes the bounds on the entry publication date.

    • The lower bound is inclusive, whereas the upper bound is exclusive.
    • Use the RFC 3339 timestamp format. For example: 2005-08-09T10:57:00-08:00.

    Parameters

    • min: MaybeString

      The min publication date value.

    • Optionalmax: MaybeString

      The max publication date value.

    Returns this

  • Changes the inclusive min bound on the entry publication date.

    Parameters

    • min: MaybeString

      The min publication date value.

    Returns this

  • Changes the exclusive max bound on the entry publication date.

    Parameters

    • max: MaybeString

      The max publication date value.

    Returns this

  • Changes the bounds on the entry update date.

    • The lower bound is inclusive, whereas the upper bound is exclusive.
    • Use the RFC 3339 timestamp format. For example: 2005-08-09T10:57:00-08:00.

    Parameters

    • min: MaybeString

      The min updated date value.

    • Optionalmax: MaybeString

      The max updated date value.

    Returns this

  • Changes the inclusive min bound on the entry update date.

    Parameters

    • min: MaybeString

      The min updated date value.

    Returns this

  • Changes the exclusive min bound on the entry update date.

    Parameters

    • max: MaybeString

      The max updated date value.

    Returns this

  • Changes the full-text query string.

    Blogger API Notes

    • When creating a query, list search terms separated by spaces, in the form q=term1 term2 term3.
    • The Google Data service returns all entries that match all of the search terms (like using AND between terms).
    • Like Google's web search, a Google Data service searches on complete words (and related words with the same stem), not substrings.
    • To search for an exact phrase, enclose the phrase in quotation marks: q="exact phrase".
    • To exclude entries that match a given term, use the form q=-term.
    • The search is case-insensitive.
    • Example: to search for all entries that contain the exact phrase "Elizabeth Bennet" and the word "Darcy" but don't contain the word "Austen", use the following query: ?q="Elizabeth Bennet" Darcy -Austen.

    Parameters

    • query: MaybeString

      The query value.

    Returns this

  • Changes alternative representation type.

    Parameters

    • alt: Maybe<Alt>

      The alternative representation type.

    Returns this

    1.2