'Test that the polish analyzer is included correctly since it is an
exception to the rest b/c it is a plugin.'

@override_settings(ES_USE_PLUGINS=True)
def test_polish_analyzer(self):

    with self.activate(locale='pl'):
        qs = self._filter(data={'q': u'pr\xf3ba'})
        should = qs['query']['function_score']['query']['bool']['should']
        ok_(({'match': {'name_l10n_polish': {'query': u'pr\xf3ba', 'boost': 2.5}}} in should))
        ok_(({'match': {'description_l10n_polish': {'query': u'pr\xf3ba', 'boost': 0.6, 'analyzer': 'polish', 'type': 'phrase'}}} in should))
