Skip to content

Commit

Permalink
add in ADD
Browse files Browse the repository at this point in the history
  • Loading branch information
ranguard committed May 13, 2017
1 parent 70149f4 commit 81cb7f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/MetaCPAN/Model/Search.pm
Expand Up @@ -447,6 +447,8 @@ sub _extract_results_add_favs {
1;

## THIS IS THE QUERY and we fill in the gaps
## NOTE the 'AND' operator, you also use `minimum_should_match: "80%"` instead
## We get slow down when too many results

__DATA__
{
Expand All @@ -463,6 +465,7 @@ __DATA__
"multi_match": {
"query": "---> QUERY_STRING_GOES_HERE <----",
"type": "cross_fields",
"operator": "AND",
"fields": [
" ---> PUT IN fields to boost on <--- "
]
Expand Down

0 comments on commit 81cb7f2

Please sign in to comment.