Handle query results with missed locale
@@ -400,6 +400,7 @@ class Solr():
"""
new_doc = new_result.mutable_document()
new_doc.set_id(doc['id'])
+ if Document.INDEX_LOCALE in doc:
new_doc.set_language(doc[Document.INDEX_LOCALE][0])
for key in doc.keys():
if not key.startswith(index.name):
