Skip to content

Commit

Permalink
Changed search boost and default multi match type.
Browse files Browse the repository at this point in the history
  • Loading branch information
5orenso committed Aug 31, 2015
1 parent 7608edb commit 6a4f572
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/adapter/elasticsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,17 @@ var Elasticsearch = function (options, mockServices) {
query: {
multi_match: {
//type: 'most_fields',
"type": (config.multiMatchType || 'best_fields'),
"type": (config.multiMatchType || 'most_fields'),
"tie_breaker": (config.multiMatchTieBreaker || 0.3),
query: query,
fields: [
'title*', 'title.language',
'teaser*', 'teaser.language',
'ingress*', 'ingress.language',
'body*', 'body.language',
'col*', 'col.language',
'footnote*', 'footnote.language'
'title*^10', 'title*.language^10',
'teaser*^5', 'teaser*.language^5',
'ingress*^5', 'ingress*.languag^5',
'body*^2', 'body*.language^2',
'col*^2', 'col*.language^2',
'footnote*', 'footnote*.language',
'tag*^15'
]
}
}
Expand Down

0 comments on commit 6a4f572

Please sign in to comment.