forked from bst-mug/trec-2017-precision-medicine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes default template to the one with boost keywords
Also adds it to the Experimenter class. This refs bst-mug#81.
- Loading branch information
Michel Oleynik
committed
Jul 25, 2017
1 parent
7f4ffff
commit 0c404ae
Showing
3 changed files
with
98 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
{ | ||
"bool": { | ||
"must": [ | ||
{ | ||
"multi_match": { | ||
"query": "{{disease}}", | ||
"fields": [ | ||
"title^2", | ||
"abstract", | ||
"keyword", | ||
"meshTags" | ||
], | ||
"tie_breaker": 0.3, | ||
"type": "best_fields", | ||
"boost": 1 | ||
} | ||
}, | ||
{ | ||
"multi_match": { | ||
"query": "{{gene}}", | ||
"fields": [ | ||
"title^2", | ||
"abstract", | ||
"keyword", | ||
"meshTags" | ||
], | ||
"tie_breaker": 0.3, | ||
"type": "best_fields" | ||
} | ||
} | ||
], | ||
"should": [ | ||
{ | ||
"match": { | ||
"_type": "extra" | ||
} | ||
}, | ||
{ | ||
"bool": { | ||
"should": { | ||
"multi_match": { | ||
"query": "cancer carcinoma tumor", | ||
"fields": [ | ||
"title^2", | ||
"abstract", | ||
"keyword", | ||
"meshTags" | ||
], | ||
"tie_breaker": 0.3, | ||
"type": "best_fields" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"bool": { | ||
"should": { | ||
"multi_match": { | ||
"query": "gene genotype DNA base", | ||
"fields": [ | ||
"title^2", | ||
"abstract", | ||
"keyword", | ||
"meshTags" | ||
], | ||
"tie_breaker": 0.3, | ||
"type": "best_fields" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"bool": { | ||
"should": { | ||
"multi_match": { | ||
"query": "therapy treatment prognosis prognostic survival patient targets study associated", | ||
"fields": [ | ||
"title^2", | ||
"abstract" | ||
], | ||
"tie_breaker": 0.3, | ||
"type": "best_fields" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} |