Skip to content

Commit

Permalink
Switch to unified highlighter for faster search on larger documents
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragjn committed Apr 26, 2019
1 parent 243f621 commit e4a4dae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion datastore/elastic_search/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,9 @@ def _generate_es_search_dictionary(entity_name, text,
},
'highlight': {
'fields': {
'variants': {}
'variants': {
'type': 'unified' # experimental in 5.x, default in 6.x and 7.x. Faster than 'plain'
}
},
'order': 'score',
'number_of_fragments': 20
Expand Down

0 comments on commit e4a4dae

Please sign in to comment.