Closed
Bug 671163
Opened 15 years ago
Closed 15 years ago
[traceback] ElasticSearchException: ReduceSearchPhaseException[Failed to execute phase [fetch], [reduce] ]; nested: ClassCastException[org.elasticsearch.search.facet.terms.longs.InternalLongTermsFacet cannot be cast to org.elasticsearch.search.facet.terms
Categories
(addons.mozilla.org Graveyard :: Search, defect)
addons.mozilla.org Graveyard
Search
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: stephend, Assigned: jbalogh)
References
()
Details
http://addons.allizom.org/z/en-US/firefox/search/es
Traceback (most recent call last):
File "/data/amo_python/www/preview/zamboni/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/data/amo_python/www/preview/zamboni/vendor/src/django-mobility/mobility/decorators.py", line 23, in wrapper
return f(request, *args, **kw)
File "/data/amo_python/www/preview/zamboni/apps/search/views.py", line 323, in es_search
vs = map(dict_from_int, [f['term'] for f in qs.facets['appversions']])
File "/data/amo_python/www/preview/zamboni/apps/amo/search.py", line 211, in facets
for key, val in self.raw_facets().items():
File "/data/amo_python/www/preview/zamboni/apps/amo/search.py", line 206, in raw_facets
return self._do_search().results.get('facets', {})
File "/data/amo_python/www/preview/zamboni/apps/amo/search.py", line 180, in _do_search
hits = self.raw()
File "/data/amo_python/www/preview/zamboni/apps/amo/search.py", line 194, in raw
hits = es.search(qs, settings.ES_INDEX, self.type._meta.app_label)
File "/data/amo_python/www/preview/zamboni/vendor/lib/python/pyes/es.py", line 841, in search
return self._query_call("_search", body, indexes, doc_types, **query_params)
File "/data/amo_python/www/preview/zamboni/vendor/lib/python/pyes/es.py", line 251, in _query_call
response = self._send_request('GET', path, body, querystring_args)
File "/data/amo_python/www/preview/zamboni/vendor/lib/python/pyes/es.py", line 223, in _send_request
raise_if_error(response.status, decoded)
File "/data/amo_python/www/preview/zamboni/vendor/lib/python/pyes/convert_errors.py", line 77, in raise_if_error
raise pyes.exceptions.ElasticSearchException(error, status, result)
ElasticSearchException: ReduceSearchPhaseException[Failed to execute phase [fetch], [reduce] ]; nested: ClassCastException[org.elasticsearch.search.facet.terms.longs.InternalLongTermsFacet cannot be cast to org.elasticsearch.search.facet.terms.strings.InternalStringTermsFacet];
| Assignee | ||
Comment 1•15 years ago
|
||
Assignee: nobody → jbalogh
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
I have faced the same problem.
Maybe this is because your field (to be sort on) have different mapping types, then de reduce phrase of search throw this exception.
Hope it helps!
You need to log in
before you can comment on or make changes to this bug.
Description
•