def test_single_facet_number_field_with_ranges(self):
        """
        Tests numeric facets with custom range buckets using from/to configurations.
        """
        self.add_fashion_docs()
        for retrieval_method, ranking_method in (
                (RetrievalMethod.Tensor, RankingMethod.Tensor),
                (RetrievalMethod.Lexical, RankingMethod.Lexical),
                (RetrievalMethod.Disjunction, RankingMethod.RRF),
        ):
            with self.subTest(retrieval_method=retrieval_method, ranking_method=ranking_method):
                facets = FacetsParameters(fields={
                    "price": FieldFacetsConfiguration(type="number", ranges=[{"to": 50}, {"from": 50}]),
                })
                expected_lexical_facets = {'price': {
                    '-Inf:50.0': {'avg': 49.03,'count': 1,'max': 49.03,'min': 49.03, 'sum': 49.03}
                }
                }
                expected_other_facets = {'price': {
                    '-Inf:50.0': {'avg': 25.115,'count': 2,'max': 49.03,'min': 1.2, 'sum': 50.23},
                    '50.0:Inf': {'avg': 87.16, 'count': 2, 'max': 92.99, 'min': 81.33, 'sum': 174.32}}
                }
                self._test_facet_query(
                    retrieval_method=retrieval_method, ranking_method=ranking_method,
                    facets=facets,
                    expected_lexical_facets=expected_lexical_facets, expected_other_facets=expected_other_facets
                )

        Tests numeric facets with custom range buckets using from/to configurations.
        
tests/integ_tests/tensor_search/integ_tests/test_facets.py