Skip to content
This repository was archived by the owner on Oct 4, 2020. It is now read-only.

Commit 77423bf

Browse files
committed
Tweak highlighting.
1 parent 75ff28e commit 77423bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/steno/elasticsearch.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,12 @@ def search(q, from=0, size=10, region_name=nil)
119119
# count by region name
120120
aggs: {region_names: {terms: {field: 'region_name'}}},
121121
highlight: {
122-
order: "score",
123122
pre_tags: ['<mark>'],
124123
post_tags: ['</mark>'],
124+
order: "score",
125+
no_match_size: 0,
125126
fields: {
126127
content: {
127-
fragment_size: 40,
128128
number_of_fragments: 1,
129129
},
130130
title: {

0 commit comments

Comments
 (0)