Changed UI to fit the-eye.eu

This commit is contained in:
Simon
2018-06-18 22:37:05 -04:00
parent 677bfa03ea
commit 81d52a4551
9 changed files with 138 additions and 29 deletions

View File

@@ -147,8 +147,9 @@ class ElasticSearchEngine(SearchEngine):
"sort": sort_by,
"highlight": {
"fields": {
"name": {"pre_tags": ["<span class='hl'>"], "post_tags": ["</span>"]},
"path": {"pre_tags": ["<span class='hl'>"], "post_tags": ["</span>"]}
"name": {"pre_tags": ["<mark>"], "post_tags": ["</mark>"]},
"name.nGram": {"pre_tags": ["<mark>"], "post_tags": ["</mark>"]},
"path": {"pre_tags": ["<mark>"], "post_tags": ["</mark>"]}
}
},
"size": per_page, "from": page * per_page}, index=self.index_name)