Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 20 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | // Search profiles for fulltext search |
3 | // Matches the syntax of Cirrus search profiles, e.g. in FullTextQueryBuilderProfiles.config.php |
4 | // Note that these will be merged with Cirrus standard profiles, |
5 | // so prefixing with 'wikibase' is recommended. |
6 | return [ |
7 | 'wikibase' => [ |
8 | 'builder_factory' => [ \Wikibase\Search\Elastic\EntityFullTextQueryBuilder::class, 'newFromGlobals' ], |
9 | 'settings' => [ |
10 | 'any' => 0.04, |
11 | 'lang-exact' => 0.78, |
12 | 'lang-folded' => 0.01, |
13 | 'lang-partial' => 0.07, |
14 | 'fallback-exact' => 0.38, |
15 | 'fallback-folded' => 0.005, |
16 | 'fallback-partial' => 0.03, |
17 | 'fallback-discount' => 0.1, |
18 | 'phrase' => [ |
19 | 'all' => 0.001, |
20 | 'all.plain' => 0.01, |
21 | 'slop' => 0, |
22 | ], |
23 | ] |
24 | ], |
25 | ]; |