Răsfoiți Sursa

HUE-1352 [search] Extract, highlight and show only the matching fragments

Change max size of a fragment and number of fragments to return.
The full record is available by clicking on the caret.

Most of the records will appear highlighted like before.
Romain Rigaux 10 ani în urmă
părinte
comite
0efad0beef
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      desktop/libs/libsolr/src/libsolr/api.py

+ 2 - 2
desktop/libs/libsolr/src/libsolr/api.py

@@ -379,8 +379,8 @@ class SolrApi(object):
     params += (
     params += (
       ('hl', 'true'),
       ('hl', 'true'),
       ('hl.fl', '*'),
       ('hl.fl', '*'),
-      ('hl.snippets', 3),
-      ('hl.fragsize', 0),
+      ('hl.snippets', 5),
+      ('hl.fragsize', 1000),
     )
     )
 
 
     if collection['template']['fieldsSelected']:
     if collection['template']['fieldsSelected']: