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. |"]]