mirror of
https://github.com/Hopiu/xapian-haystack.git
synced 2026-03-16 22:20:31 +00:00
Fixed highlighting in newly refactored code
This commit is contained in:
parent
2a9aea6fa6
commit
edd41f4552
1 changed files with 3 additions and 3 deletions
|
|
@ -285,9 +285,6 @@ class SearchBackend(BaseSearchBackend):
|
|||
for match in matches:
|
||||
document = match.get_document()
|
||||
app_label, module_name, pk, model_data = pickle.loads(document.get_data())
|
||||
results.append(
|
||||
SearchResult(app_label, module_name, pk, match.weight, **model_data)
|
||||
)
|
||||
if facets:
|
||||
facets_dict['fields'] = self._do_field_facets(
|
||||
document, facets, facets_dict['fields']
|
||||
|
|
@ -298,6 +295,9 @@ class SearchBackend(BaseSearchBackend):
|
|||
model_data.get(self.content_field_name), query_string
|
||||
)
|
||||
}
|
||||
results.append(
|
||||
SearchResult(app_label, module_name, pk, match.weight, **model_data)
|
||||
)
|
||||
|
||||
return {
|
||||
'results': results,
|
||||
|
|
|
|||
Loading…
Reference in a new issue