Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SourceCrowdingConfig

import type { SourceCrowdingConfig } from "https://googleapis.deno.dev/v1/cloudsearch:v1.ts";

Set search results crowding limits. Crowding is a situation in which multiple results from the same source or host "crowd out" other results, diminishing the quality of search for users. To foster better search quality and source diversity in search results, you can set a condition to reduce repetitive results by source.

interface SourceCrowdingConfig {
numResults?: number;
numSuggestions?: number;
}

§Properties

§
numResults?: number
[src]

Maximum number of results allowed from a datasource in a result page as long as results from other sources are not exhausted. Value specified must not be negative. A default value is used if this value is equal to 0. To disable crowding, set the value greater than 100.

§
numSuggestions?: number
[src]

Maximum number of suggestions allowed from a source. No limits will be set on results if this value is less than or equal to 0.