def test_single_number_facets_int(self):
        """
        Tests numeric facets behavior with integer values, including range boundaries
        and count validations across different retrieval methods.
        """
        docs_for_test = copy.deepcopy(EXAMPLE_FASHION_DOCUMENTS)
        for doc_for_test in docs_for_test:
            doc_for_test["price"] = int(doc_for_test["price"])
        self.add_fashion_docs(docs_for_test)
        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):
                with self.subTest("Test expected number of fields returned"):
                    facets = FacetsParameters(fields={
                        "price": FieldFacetsConfiguration(type="number"),
                    })
                    res = tensor_search.search(
                        config=self.config, index_name=self.semi_structured_default_text_index.name, text="shirt",
                        facets=facets,
                        search_method=SearchMethod.HYBRID, hybrid_parameters=HybridParameters(
                            retrievalMethod=retrieval_method, rankingMethod=ranking_method
                        )
                    )
                    if retrieval_method == RetrievalMethod.Lexical:
                        self.assertEqual(res["facets"]["price"]["count"], 1)
                    else:
                        self.assertEqual(res["facets"]["price"]["count"], 4)
                with self.subTest("Test ranges include up to but not including 'to' value and return expected counts"):
                    facets = FacetsParameters(fields={
                        "price": FieldFacetsConfiguration(type="number", ranges=[{"to": 49, "name": "to49"}, {"from": 49, "name": "from49"}]),
                    })
                    res = tensor_search.search(
                        config=self.config, index_name=self.semi_structured_default_text_index.name, text="shirt",
                        facets=facets,
                        search_method=SearchMethod.HYBRID, hybrid_parameters=HybridParameters(
                            retrievalMethod=retrieval_method, rankingMethod=ranking_method
                        )
                    )
                    if retrieval_method == RetrievalMethod.Lexical:
                        # expected match here costs exactly 49 and is included in from=49 but excluded when to=49
                        self.assertEqual(res["facets"]["price"]["from49"]["count"], 1)
                    else:
                        self.assertEqual(res["facets"]["price"]["to49"]["count"], 1)
                        self.assertEqual(res["facets"]["price"]["from49"]["count"], 3)
                with self.subTest("Test ranges support both 'from' and 'to' and return expected counts"):
                    facets = FacetsParameters(fields={
                        "price": FieldFacetsConfiguration(type="number", ranges=[{"from": 3, "to": 50}, {"from": 50, "name": "from50"}]),
                    })
                    res = tensor_search.search(
                        config=self.config, index_name=self.semi_structured_default_text_index.name, text="shirt",
                        facets=facets,
                        search_method=SearchMethod.HYBRID, hybrid_parameters=HybridParameters(
                            retrievalMethod=retrieval_method, rankingMethod=ranking_method
                        )
                    )
                    if retrieval_method == RetrievalMethod.Lexical:
                        self.assertEqual(res["facets"]["price"]["3.0:50.0"]["count"], 1)
                    else:
                        self.assertEqual(res["facets"]["price"]["3.0:50.0"]["count"], 1)
                        self.assertEqual(res["facets"]["price"]["from50"]["count"], 2)

        Tests numeric facets behavior with integer values, including range boundaries
        and count validations across different retrieval methods.
        
tests/integ_tests/tensor_search/integ_tests/test_facets.py