RelevanceThreshold
Stay organized with collections
Save and categorize content based on your preferences.
The relevance threshold of the search results. The higher relevance threshold is, the higher relevant results are shown and the less number of results are returned.
Enums |
RELEVANCE_THRESHOLD_UNSPECIFIED |
Default value. In this case, server behavior defaults to Google defined threshold. |
LOWEST |
Lowest relevance threshold. |
LOW |
Low relevance threshold. |
MEDIUM |
Medium relevance threshold. |
HIGH |
High relevance threshold. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-03 UTC."],[[["The relevance threshold setting affects the search results by controlling the balance between result quantity and relevance."],["Higher relevance thresholds mean fewer, but more relevant, results will be shown."],["The `RELEVANCE_THRESHOLD_UNSPECIFIED` setting uses a default Google-defined threshold for relevance."],["Available relevance thresholds include `LOWEST`, `LOW`, `MEDIUM`, and `HIGH`, each representing a different level of relevance."]]],[]]