Python 2.7은 지원이 종료되었으며 2026년 1월 31일에
지원 중단됩니다. 지원 중단 후에는 조직에서 이전에 조직 정책을 사용하여 레거시 런타임의 배포를 다시 사용 설정한 경우에도 Python 2.7 애플리케이션을 배포할 수 없습니다. 기존 Python 2.7 애플리케이션은
지원 중단 날짜 이후에도 계속 실행되고 트래픽을 수신합니다.
지원되는 최신 Python 버전으로 마이그레이션하는 것이 좋습니다.
FacetResultValue 클래스
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
FacetResultValue
클래스는 검색결과의 일부로 속성 값을 표현합니다.
FacetResultValue
은 모듈 google.appengine.api.search
에 정의됩니다.
생성자
FacetResultValue
클래스의 생성자는 다음과 같이 정의됩니다.
class FacetResultValue(label, count, refinement)
FacetRefinement
클래스의 인스턴스를 생성합니다.
인수
- label
- label 속성을 설정합니다.
- count
- count 속성을 설정합니다.
- refinement
- refinement 속성을 설정합니다.
결과 값
FacetResultValue
클래스의 새 인스턴스입니다.
예외
- TypeError
유형이 잘못된 매개변수가 하나라도 있거나 알 수 없는 속성이 전달된 경우에 발생합니다.
- ValueError
값이 잘못된 매개변수가 하나라도 있는 경우에 발생합니다.
속성
FacetResultValue
클래스의 인스턴스에는 다음 속성이 있습니다.
- label
속성 값의 라벨. 원자 속성의 경우 라벨은 속성의 문자열 값이며 숫자 속성 값의 경우 값 범위를 나타내는 문자열입니다.
- count
이 FacetResultValue와 일치하는 문서의 수(현재 쿼리 결과에서)
- refinement_token
이 FacetResultValue의 FacetRefinement 객체. 이 객체 또는 해당 문자열 토큰을 다음 쿼리로 전달하면 이 속성 값을 기반으로 결과가 세분화됩니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 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\u003eFacetResultValue\u003c/code\u003e represents a facet value within search results and is part of the \u003ccode\u003egoogle.appengine.api.search\u003c/code\u003e module, supported for first-generation runtimes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFacetResultValue\u003c/code\u003e constructor takes label, count, and refinement as arguments to create a new instance, raising \u003ccode\u003eTypeError\u003c/code\u003e or \u003ccode\u003eValueError\u003c/code\u003e for invalid inputs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003elabel\u003c/code\u003e property of \u003ccode\u003eFacetResultValue\u003c/code\u003e represents the string value for atom facets or a string range for numeric facets.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecount\u003c/code\u003e property indicates how many documents match the \u003ccode\u003eFacetResultValue\u003c/code\u003e in the current query results.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003erefinement_token\u003c/code\u003e property provides a \u003ccode\u003eFacetRefinement\u003c/code\u003e object to further refine future search queries based on the selected facet value.\u003c/p\u003e\n"]]],[],null,["# The FacetResultValue Class\n\nClass `FacetResultValue` Represents a facet value as part of search result.\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`FacetResultValue` is defined in the module `google.appengine.api.search`.\n\nConstructor\n-----------\n\nThe constructor for class `FacetResultValue` is defined as follows:\n\nclass FacetResultValue(label, count, refinement)\n\n: Construct an instance of class `FacetRefinement`.\n\n:\n\n Arguments\n\n label\n : Sets the label property\n\n count\n : Sets the count property\n\n refinement\n : Sets the refinement property\n\n Result value\n\n : A new instance of class `FacetResultValue`.\n\n Exceptions\n\n TypeError\n\n : If any of the parameters have invalid types, or an unknown\n attribute is passed.\n\n ValueError\n\n : If any of the parameters have invalid values.\n\n \u003cbr /\u003e\n\n\u003cbr /\u003e\n\nProperties\n----------\n\nAn instance of class `FacetResultValue` has the following properties:\n\nlabel\n\n: The label for this facet value. For an atom facet, the label is the facet's string value, For numeric facet values, it's a string representing the value range.\n\ncount\n\n: The number of documents (in the current query results) that match this FacetResultValue.\n\nrefinement_token\n\n: The FacetRefinement object for this FacetResultValue. Passing this object\n or its string token to the next query will refine the result based on\n this facet value."]]