SearchMode
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
검색 동작을 정의하는 모드로, 지연 시간 대비 솔루션 품질에 대한 균형을 유지합니다. 모든 모드에서는 전역 요청 기한이 적용됩니다.
열거형 |
SEARCH_MODE_UNSPECIFIED |
지정되지 않은 검색 모드입니다. RETURN_FAST 과 같습니다. |
RETURN_FAST |
첫 번째 좋은 해결책을 찾은 후 검색을 중단합니다. |
CONSUME_ALL_AVAILABLE_TIME |
가능한 모든 시간을 들여 더 나은 솔루션을 찾는 데 집중하세요. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-29(UTC)
[null,null,["최종 업데이트: 2025-08-29(UTC)"],[[["\u003cp\u003eSearch mode determines the balance between the speed of the search and the quality of the solutions found.\u003c/p\u003e\n"],["\u003cp\u003eThe global request deadline is applied regardless of the chosen search mode.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRETURN_FAST\u003c/code\u003e mode prioritizes speed by stopping after the first good solution is discovered.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCONSUME_ALL_AVAILABLE_TIME\u003c/code\u003e mode uses all available time to search for improved solutions.\u003c/p\u003e\n"]]],[],null,["# SearchMode\n\nMode defining the behavior of the search, trading off latency versus solution quality. In all modes, the global request deadline is enforced.\n\n| Enums ||\n|------------------------------|--------------------------------------------------------------|\n| `SEARCH_MODE_UNSPECIFIED` | Unspecified search mode, equivalent to `RETURN_FAST`. |\n| `RETURN_FAST` | Stop the search after finding the first good solution. |\n| `CONSUME_ALL_AVAILABLE_TIME` | Spend all the available time to search for better solutions. |"]]