tutti-api - v2.1.0
    Preparing search index...

    Class SearchBuilder

    Chainable search query builder. Each call mutates the draft and returns this; .fetch() runs the search and returns a SearchResult.

    Index

    Constructors

    Methods

    • Restrict to a category id (e.g. "furniture", "cars").

      Parameters

      • id: string

      Returns this

    • Set the pagination cursor (used internally by SearchResult.next()).

      Parameters

      • c: string | null

      Returns this

    • Thumbnail height requested from the API.

      Parameters

      • px: number

      Returns this

    • Numeric range filter (e.g. "year", "mileage").

      Parameters

      • name: string
      • range: { max?: number; min?: number }

      Returns this

    • Multi-select filter (e.g. multiSelect("language", ["de", "fr"])).

      Parameters

      • name: string
      • values: string[]

      Returns this

    • Price bounds in CHF. Omit min or max for open-ended.

      Parameters

      • p: { freeOnly?: boolean; max?: number; min?: number }

      Returns this

    • Search radius around the selected localities (as the app sends it, in km).

      Parameters

      • km: number

      Returns this

    • Single-select filter (e.g. select("companyAd", "private")).

      Parameters

      • name: string
      • value: string

      Returns this