Python 2.7은 지원이 종료되었으며 2026년 1월 31일에
지원 중단됩니다. 지원 중단 후에는 조직에서 이전에 조직 정책을 사용하여 레거시 런타임의 배포를 다시 사용 설정한 경우에도 Python 2.7 애플리케이션을 배포할 수 없습니다. 기존 Python 2.7 애플리케이션은
지원 중단 날짜 이후에도 계속 실행되고 트래픽을 수신합니다.
지원되는 최신 Python 버전으로 마이그레이션하는 것이 좋습니다.
FacetOptions 클래스
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
FacetOptions
클래스는 쿼리의 속성 결과를 처리하는 옵션을 제공합니다.
FacetOptions
은 google.appengine.api.search
모듈에 정의됩니다.
소개
FacetOptions
클래스는 쿼리의 속성 결과를 처리하는 옵션을 제공합니다. 옵션에는 검색할 상품 속성 수, 각 상품 속성의 값 수, 상품 속성 계산을 위해 고려해야 할 결과의 깊이가 포함됩니다.
생성자
FacetOptions
클래스의 생성자는 다음과 같이 정의됩니다.
-
facet_option = FacetOptions(discovery_limit=5, discovery_value_limit=None, depth=None)
쿼리의 상품 속성 결과 처리를 위한 옵션을 지정합니다.
-
인수
- discovery_limit
- discovery_value_limit
- depth
결과 값
FacetOptions
클래스의 새 인스턴스입니다.
예외
- TypeError
알 수 없는 속성이 전달된 경우
- ValueError
매개변수 중 하나라도 값이 잘못된 경우(예: 음수 깊이)
속성
FacetOptions
클래스의 인스턴스에는 다음 속성이 있습니다.
- discovery_limit
상품 속성 검색이 켜져 있는 경우 검색할 상품 속성 수입니다. None이면 상품 속성 검색이 사용 중지됩니다.
- discovery_value_limit
가장 많이 발견된 상품 속성 각각에 대해 검색할 값의 수입니다.
- depth
상품 속성 정보를 수집하기 위해 평가할 쿼리 결과의 문서 수입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-09-04(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[[["\u003cp\u003e\u003ccode\u003eFacetOptions\u003c/code\u003e class is used to configure the processing of facet results from a query.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows you to specify the number of facets, values per facet, and the depth of results to include.\u003c/p\u003e\n"],["\u003cp\u003eThis API is applicable to first-generation runtimes and offers options for upgrading to second-generation runtimes, with a migration guide available for Python 3 runtime.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFacetOptions\u003c/code\u003e is located in the \u003ccode\u003egoogle.appengine.api.search\u003c/code\u003e module.\u003c/p\u003e\n"]]],[],null,["# The FacetOptions Class\n\nClass `FacetOptions` provides options for processing facet results of a query.\n| This API is supported for first-generation runtimes and can be used when [upgrading to corresponding second-generation runtimes](/appengine/docs/standard/\n| python3\n|\n| /services/access). If you are updating to the App Engine Python 3 runtime, refer to the [migration guide](/appengine/migration-center/standard/migrate-to-second-gen/python-differences) to learn about your migration options for legacy bundled services.\n\n`FacetOptions` is defined in the `google.appengine.api.search` module.\n\nIntroduction\n------------\n\nClass `FacetOptions` provides options for processing facet results of a\nquery. Options include number of facets to discover, number of values for each facet and the depth\nof the result to be considered for facet computation.\n\nConstructor\n-----------"]]