%PDF- %PDF-
| Direktori : /www/varak.net/wiki.varak.net/extensions/CirrusSearch/tests/browser/features/ |
| Current File : //www/varak.net/wiki.varak.net/extensions/CirrusSearch/tests/browser/features/wildcard_api.feature |
@clean @api @wildcard
Feature: Searches that contain wildcard matches
Scenario Outline: Wildcards match plain matches
When I api search for pi<wildcard>les
Then Two Words is the first api search result
Examples:
| wildcard |
| * |
| \\?k |
| c\\? |
Scenario Outline: Wildcards don't match stemmed matches
When I api search for pi<wildcard>kle
Then there are no api search results
Examples:
| wildcard |
| * |
| \\?k |
Scenario Outline: Wildcards in leading intitle: terms match
When I api search for intitle:functiona<wildcard> intitle:programming
Then Functional programming is the first api search result
Examples:
| wildcard |
| * |
| \\? |
Scenario Outline: Wildcard suffixes in trailing intitle: terms match stemmed matches
When I api search for intitle:functional intitle:programmin<wildcard>
Then Functional programming is the first api search result
Examples:
| wildcard |
| * |
| \\? |
Scenario Outline: Wildcards within trailing intitle: terms match stemmed matches
When I api search for intitle:functional intitle:prog<wildcard>amming
Then Functional programming is the first api search result
Examples:
| wildcard |
| * |
| \\? |
Scenario Outline: Searching with a single wildcard finds expected results
When I api search for catapu<wildcard>
Then Catapult is in the api search results
Examples:
| wildcard |
| * |
| \\?t |
| l\\? |
Scenario: Searching with a complex wildcard query fails
When I api search for d*e*a*d*l*y*w*i*l*d*c*a*r*d*d*e*a*d*l*y*w*i*l*d*c*a*r*d*d*e*a*d*l*y*w*i*l*d*c*a*r*d*d*e*a*d*w*i*l*d*c*a*r*d*
Then this error is reported by api: Regular expression is too complex. Learn more about simplifying it [[mw:Special:MyLanguage/Help:CirrusSearch/RegexTooComplex|here]].