Skip to content

Commit

Permalink
Merge pull request #104 from coveo/jdevost-improvements
Browse files Browse the repository at this point in the history
Update example for matchPattern
  • Loading branch information
jdevost authored Oct 18, 2018
2 parents 18c387c + 40bf011 commit ad11383
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 15 deletions.
1 change: 1 addition & 0 deletions contributors.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"Etienne Rocheleau"
"Jerome Devost"
"Francis Nadeau"
"Pascal Soucy"
"Adam Bolduc"
Expand Down
55 changes: 40 additions & 15 deletions scenarios_examples/DemoMovies.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,46 @@
"timeBetweenActions": 1,
"randomGoodQueries": [],
"randomBadQueries": [],
"randomCustomData": [
],
"globalFilter": "NOT @mytype=Wikipedia",
"randomCustomData": [{"apiname": "c_isbot", "values": ["true"]}],
"globalFilter": "@mytype=Movie",
"scenarios": [{
"name": "(G) red willis",
"weight": 3,
"events": [{
"type": "SearchAndClick",
"arguments": {
"queryText": "red willis",
"matchField": "title",
"matchRegex": "^RED( [0-9])?$",
"probability": 0.95
}
}]
}]
"name": "(G) red willis",
"weight": 3,
"events": [{
"type": "SearchAndClick",
"arguments": {
"queryText": "red willis",
"matchField": "title",
"matchPattern": "^RED( [0-9])?$",
"probability": 0.95
}
}]
},
{
"name": "(G) jason bourne",
"weight": 3,
"events": [{
"type": "SearchAndClick",
"arguments": {
"queryText": "jason bourne",
"matchField": "title",
"matchPattern": " Identity$",
"probability": 1
}
}]
},
{
"name": "(G) balboa",
"weight": 3,
"events": [{
"type": "SearchAndClick",
"arguments": {
"queryText": "balboa",
"docClickTitle": "Rocky",
"probability": 1
}
}]
}
]

}

0 comments on commit ad11383

Please sign in to comment.