Skip to content

Commit

Permalink
fix(api): add a boost to article_id match
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelB committed Jun 26, 2019
1 parent 2bfe34c commit 8c91382
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Object {
Object {
"_id": "8",
"_index": "cdtn_document_test",
"_score": 7.8337746,
"_score": 10.606363,
"_source": Object {
"slug": "r1225-18",
"source": "code_du_travail",
Expand All @@ -40,7 +40,7 @@ Object {
"_type": "cdtn_document_test",
},
],
"max_score": 7.8337746,
"max_score": 10.606363,
"total": 2,
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ function getFacetsBody({ query }) {
{
match: {
"title.article_id": {
query: query
query: query,
boost: 5
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ function getSearchBody({ query, size, excludeSources = [] }) {
{
match: {
"title.article_id": {
query: query
query: query,
boost: 5
}
}
},
Expand Down

0 comments on commit 8c91382

Please sign in to comment.