def test_facet_raw_overrides_facet(self):
        FacetTest.index_data([
                {'id': 1, 'foo': 'bar', 'tag': 'awesome'},
                {'id': 2, 'foo': 'bart', 'tag': 'boring'},
                {'id': 3, 'foo': 'car', 'tag': 'awesome'},
                {'id': 4, 'foo': 'duck', 'tag': 'boat'},
                {'id': 5, 'foo': 'train car', 'tag': 'awesome'}
            ])
        FacetTest.refresh()

        qs = (self.get_s()
              .query(foo='car')
              .facet('tag')
              .facet_raw(tag={'terms': {'field': 'tag'}, 'global': True}))
        eq_(facet_counts_dict(qs, 'tag'),
            dict(awesome=3, boring=1, boat=1))
Should post replaceResult rquest.
dataset/ETHPy150Open mozilla/elasticutils/elasticutils/tests/test_query.py/FacetTest.test_facet_raw_overrides_facet--crossover with--dataset/ETHPy150Open tophatmonocle/ims_lti_py/tests/outcome_request_test.py/TestOutcomeRequest.test_post_replace_result