Manybubbles has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/164150

Change subject: Somewhat aggressive and sweeping analysis changes
......................................................................

Somewhat aggressive and sweeping analysis changes

This is a sweeping change that affects many languages.  I imagine it'll
be safe because this is a very lsearchd-like thing to do so people are
used to it.

This should help in several ways:
1.  Make it easier to find files by exact name.  The big change here is that
underscore should just be treated like a space everywhere.  This is true in
some contexts already (English stemmed search) but not in other important
contexts (English non-stemmed search and every other language and near_match).
2.  Make finding files by name without hte extension more possible in
languages other than English.
Bug: 40612
Bug: 62733
3.  Make code (specifically js) a bit easier to find by forcing . and ( and )
to cause word breaks.
Bug: 63861
Bug: 71101
Bug: 68527
4.  Improve searching for code in languages other than English by forcing .
and ( and ) to cause word breaks.
Bug: 68782

DEPLOYMENT: This change requires a from-Elasticsearch index rebuild to take
effect.
Change-Id: Icfb9e80e5783a3b7fac100c52b1e10505216842e
---
M includes/Maintenance/AnalysisConfigBuilder.php
A tests/browser/articles/No_SVG.svg
A tests/browser/articles/No_SVG.svg.license
A tests/browser/articles/Somethingelse_svg_SVG.svg
A tests/browser/articles/Somethingelse_svg_SVG.svg.license
M tests/browser/features/full_text.feature
M tests/browser/features/support/hooks.rb
M tests/jenkins/Jenkins.php
8 files changed, 153 insertions(+), 9 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch 
refs/changes/50/164150/1

diff --git a/includes/Maintenance/AnalysisConfigBuilder.php 
b/includes/Maintenance/AnalysisConfigBuilder.php
index 5105d54..bd2ffc4 100644
--- a/includes/Maintenance/AnalysisConfigBuilder.php
+++ b/includes/Maintenance/AnalysisConfigBuilder.php
@@ -76,9 +76,11 @@
                        'analyzer' => array(
                                'text' => array(
                                        'type' => 
$this->getDefaultTextAnalyzerType(),
+                                       'char_filter' => array( 
'word_break_helper' ),
                                ),
                                'text_search' => array(
                                        'type' => 
$this->getDefaultTextAnalyzerType(),
+                                       'char_filter' => array( 
'word_break_helper' ),
                                ),
                                'plain' => array(
                                        // Surprisingly, the Lucene docs claim 
this works for
@@ -88,6 +90,7 @@
                                        'type' => 'custom',
                                        'tokenizer' => 'standard',
                                        'filter' => array( 'standard', 
'lowercase' ),
+                                       'char_filter' => array( 
'word_break_helper' ),
                                ),
                                'plain_search' => array(
                                        // In accent squashing languages this 
will not contain accent
@@ -96,6 +99,7 @@
                                        'type' => 'custom',
                                        'tokenizer' => 'standard',
                                        'filter' => array( 'standard', 
'lowercase' ),
+                                       'char_filter' => array( 
'word_break_helper' ),
                                ),
                                'suggest' => array(
                                        'type' => 'custom',
@@ -162,12 +166,25 @@
                                ),
                        ),
                        'char_filter' => array(
-                               // Flattens things that are space like to 
spaces in the near_match style analyzersc
+                               // Flattens things that are space like to 
spaces in the near_match style analyzers
                                'near_space_flattener' => array(
                                        'type' => 'mapping',
                                        'mappings' => array(
                                                "'=>\u0020",
                                                '’=>\u0020',
+                                               '_=>\u0020',
+                                       ),
+                               ),
+                               // Converts things that don't always count as 
word breaks into spaces which always
+                               // count as word breaks.
+                               'word_break_helper' => array(
+                                       'type' => 'mapping',
+                                       'mappings' => array(
+                                               '_=>\u0020',
+                                               // These are more useful for 
code:
+                                               '.=>\u0020',
+                                               '(=>\u0020',
+                                               ')=>\u0020',
                                        ),
                                ),
                        ),
@@ -208,6 +225,7 @@
                        $config[ 'analyzer' ][ 'text' ] = array(
                                'type' => 'custom',
                                'tokenizer' => 'standard',
+                               'char_filter' => array( 'word_break_helper' ),
                        );
                        $filters = array();
                        $filters[] = 'standard';
@@ -274,6 +292,7 @@
                        $config[ 'analyzer' ][ 'text' ] = array(
                                'type' => 'custom',
                                'tokenizer' => 'standard',
+                               'char_filter' => array( 'word_break_helper' ),
                        );
                        $filters = array();
                        $filters[] = 'standard';
diff --git a/tests/browser/articles/No_SVG.svg 
b/tests/browser/articles/No_SVG.svg
new file mode 100644
index 0000000..fd535c2
--- /dev/null
+++ b/tests/browser/articles/No_SVG.svg
@@ -0,0 +1,47 @@
+<svg xmlns="http://www.w3.org/2000/svg"; height="744" width="852" 
xmlns:xlink="http://www.w3.org/1999/xlink";>
+<defs>
+<clipPath id="f">
+<use xlink:href="#G2_"/>
+</clipPath>
+<clipPath id="g">
+<path d="m0 0v744h854v-744zm666.8 130c85.1 85.1 115.1 204.6 89.9 
314h-124.7v-75.5c0-52.1-19.7-104.3-59.5-144.1zm-461.2 148.6h-101.4c14.94-54.4 
43.76-105.8 86.5-148.5m216 123.4 114.6 114.3l-48.3 137.5-66.3-66.3z"/>
+</clipPath>
+<linearGradient id="path2576_1_" y2="699.7" gradientUnits="userSpaceOnUse" 
y1="271.7" x2="762.4" x1="332">
+<stop stop-color="#faa"/>
+<stop stop-opacity="0" stop-color="#faa" offset="1"/>
+</linearGradient>
+<linearGradient id="d" y2="810.9" gradientUnits="userSpaceOnUse" x2="596" 
y1="270" x1="424">
+<stop stop-color="#3b3c39"/>
+<stop stop-color="#888a85" offset="1"/>
+</linearGradient>
+<linearGradient id="c" y2="-75.6" gradientUnits="userSpaceOnUse" y1="452.4" 
x2="-8.23" x1="512">
+<stop stop-color="#a00"/>
+<stop stop-opacity="0" stop-color="#a00" offset="1"/>
+</linearGradient>
+<radialGradient id="e" gradientUnits="userSpaceOnUse" cy="593.1" cx="437.3" 
gradientTransform="matrix(0.071 1.214 -1.371 0.081 1041 -356.1)" r="309.1">
+<stop stop-color="#ff8080"/>
+<stop stop-opacity="0" stop-color="#ff8080" offset="1"/>
+</radialGradient>
+<radialGradient id="a" gradientUnits="userSpaceOnUse" cy="40" cx="23.86" 
gradientTransform="matrix(22.22 0 0 3.733 -104.2 530.7)" r="17.1">
+<stop/>
+<stop stop-opacity="0" offset="1"/>
+</radialGradient>
+<radialGradient id="h" gradientUnits="userSpaceOnUse" cy="55.74" cx="272.9" 
r="574.5">
+<stop stop-opacity="0" stop-color="#777" offset="0.82"/>
+<stop stop-opacity="0.55" offset="0.83"/>
+</radialGradient>
+<radialGradient id="G1_" xlink:href="#c" gradientUnits="userSpaceOnUse" 
cy="431.7" cx="902.7" gradientTransform="matrix(-0.009 -1.657 1.726 0 -174.8 
2036)" r="290.6"/>
+</defs>
+<path id="G2_" clip-path="url(#g)" d="m850.5 373.3h-131v53.4h65.5v92.4c-8.8 
4.4-26.96 7.7-51.2 7.7-77 0-128.8-50.1-128.8-134.3 0-86.4 55.6-133.2 
134.8-133.2 39.1 0 63.83 7.15 84.2 
15.96l14.86-54.5c-17.1-8.25-52.83-17.61-98.5-17.61-122.7 0-206.4 75.4-206.4 
192.6-0.55 56.1 18.71 105.1 51.73 136.5 35.2 33.57 82.5 49.5 145.3 49.5 49.5 0 
95.8-12.1 119.4-20.91zm-545.1-166.2h-73.7l120 
370.9h77.53l128.2-370.9h-72.1c-29.95 100-70.52 209.4-92.45 
303.8-25.6-105.7-54.98-195.7-87.48-303.8zm-295.2 353.3c20.36 12.1 61.1 23.1 
100.2 23.1 95.8 0 140.9-51.73 140.9-111.2 
0-53.4-31.37-85.8-95.8-110.1-49.5-19.26-70.99-32.47-70.99-61.1 0-21.46 
18.71-44.57 61.6-44.57l1.11-55.6c-80.3 0-131 46.2-131 106.8 0 53.4 39.1 85.8 
100.2 107.9 47.3 17.1 66 33.57 66 61.6 0 30.3-24.2 50.63-67.7 50.63-34.67 
0-67.7-11-89.7-23.66z"/>
+<ellipse id="b" opacity="0.6" rx="381" ry="64" cy="680" cx="426" 
fill="url(#a)"/>
+<use xlink:href="#b" transform="matrix(0.62 0 0 0.62 161.7 258.1)"/>
+<path d="m190.8 606c131.4 131.4 344.6 131.4 476 0s131.4-344.6 
0.02-476c-131.3-131.4-344.7-131.4-476 0-131.4 131.4-131.4 344.6 0 
476zm327.6-55.5c-75.86 37.2-170.1 
24.27-233.2-38.78-63-63.1-75.98-157.3-38.79-233.2zm54.1-326.2c63.1 63.1 75.95 
157.4 38.74 233.2l-271.9-271.9c75.9-37.2 170.2-24.3 233.2 38.7z" 
fill="url(#c)"/>
+<path opacity="0.8" d="m203.5 142.6c-126.4 126.4-127.9 329.9-3.51 454.3s327.9 
122.8 454.3-3.53c126.4-126.4 128-329.9 3.56-454.3s-328-122.8-454.4 3.53zm40.66 
118.7l291.4 291.4c-116.1 51.2-196.5 
24.46-256.2-35.2-59.71-59.71-93.5-149.2-35.2-256.2zm79.4-79.4c95.9-51.2 
195.1-23.1 254.8 36.62 59.72 59.72 89.9 154.9 36.61 254.8l-291.4-291.4z" 
stroke="#fff" stroke-width="6" fill="url(#path2576_1_)"/>
+<path d="m212.5 151.7c-121.9 121.9-123.9 317.8-4.52 437.2s315.2 117.4 
437.1-4.54 124-317.8 4.56-437.2-315.3-117.4-437.2 4.54zm28.93 95.7l308 
308c-151.2 66.76-218.8 
25.45-276.1-31.85s-105.4-139.7-31.85-276.1zm68.2-68.2c117.6-64.7 217.5-24.1 
274.8 33.2s100.8 140.1 33.2 274.8l-307.9-307.9z" fill="url(#e)"/>
+<path d="m155.6 520.9c13.41 24.51 30.45 47.5 51.2 68.2 119.4 119.4 315.2 117.4 
437.1-4.53s124-317.8 4.57-437.2c-20.7-20.7-43.72-37.72-68.2-51.1-5.81 
31.2-14.42 61.99-25.83 91.9 10.49 7.58 20.1 15.86 28.75 24.51 57.3 57.3 106.2 
157.4 33.2 274.8l-149.5-149.5c-10.4 12.5-21.45 24.63-33.2 36.4-11.26 
11.25-22.89 21.92-34.87 31.95l149.4 149.4c-128.5 66.76-218.8 
25.46-276.1-31.84-8.83-8.83-17.45-18.27-25.43-28.39-29.67 11.24-60.1 19.75-91 
25.5z" fill="url(#G1_)"/>
+<g stroke-width="11" stroke-linejoin="round">
+<use xlink:href="#G2_" stroke="#2e3436" fill="url(#d)" color="#000"/>
+<use opacity="0.5" xlink:href="#G2_" clip-path="url(#f)" stroke="#fff" 
fill="none"/>
+</g>
+<use opacity="0.5" xlink:href="#G2_" fill="url(#h)"/>
+</svg>
\ No newline at end of file
diff --git a/tests/browser/articles/No_SVG.svg.license 
b/tests/browser/articles/No_SVG.svg.license
new file mode 100644
index 0000000..188ee70
--- /dev/null
+++ b/tests/browser/articles/No_SVG.svg.license
@@ -0,0 +1,2 @@
+This file is from https://commons.wikimedia.org/wiki/File:No_SVG.svg
+Author is Perhelion based on Acces_interdit_access_forbidden.svg
diff --git a/tests/browser/articles/Somethingelse_svg_SVG.svg 
b/tests/browser/articles/Somethingelse_svg_SVG.svg
new file mode 100644
index 0000000..f479e18
--- /dev/null
+++ b/tests/browser/articles/Somethingelse_svg_SVG.svg
@@ -0,0 +1,47 @@
+<svg xmlns="http://www.w3.org/2000/svg"; height="744" width="852" 
xmlns:xlink="http://www.w3.org/1999/xlink";>
+<defs>
+<clipPath id="f">
+<use xlink:href="#G2_"/>
+</clipPath>
+<clipPath id="g">
+<path d="m0 0v744h854v-744zm666.8 130c85.1 85.1 115.1 204.6 89.9 
314h-124.7v-75.5c0-52.1-19.7-104.3-59.5-144.1zm-461.2 148.6h-101.4c14.94-54.4 
43.76-105.8 86.5-148.5m216 123.4 114.6 114.3l-48.3 137.5-66.3-66.3z"/>
+</clipPath>
+<linearGradient id="path2576_1_" y2="699.7" gradientUnits="userSpaceOnUse" 
y1="271.7" x2="762.4" x1="332">
+<stop stop-color="#faa"/>
+<stop stop-opacity="0" stop-color="#faa" offset="1"/>
+</linearGradient>
+<linearGradient id="d" y2="810.9" gradientUnits="userSpaceOnUse" x2="596" 
y1="270" x1="424">
+<stop stop-color="#3b3c39"/>
+<stop stop-color="#888a85" offset="1"/>
+</linearGradient>
+<linearGradient id="c" y2="-75.6" gradientUnits="userSpaceOnUse" y1="452.4" 
x2="-8.23" x1="512">
+<stop stop-color="#a00"/>
+<stop stop-opacity="0" stop-color="#a00" offset="1"/>
+</linearGradient>
+<radialGradient id="e" gradientUnits="userSpaceOnUse" cy="593.1" cx="437.3" 
gradientTransform="matrix(0.071 1.214 -1.371 0.081 1041 -356.1)" r="309.1">
+<stop stop-color="#ff8080"/>
+<stop stop-opacity="0" stop-color="#ff8080" offset="1"/>
+</radialGradient>
+<radialGradient id="a" gradientUnits="userSpaceOnUse" cy="40" cx="23.86" 
gradientTransform="matrix(22.22 0 0 3.733 -104.2 530.6)" r="17.1">
+<stop/>
+<stop stop-opacity="0" offset="1"/>
+</radialGradient>
+<radialGradient id="h" gradientUnits="userSpaceOnUse" cy="55.74" cx="272.9" 
r="574.5">
+<stop stop-opacity="0" stop-color="#777" offset="0.82"/>
+<stop stop-opacity="0.55" offset="0.83"/>
+</radialGradient>
+<radialGradient id="G1_" xlink:href="#c" gradientUnits="userSpaceOnUse" 
cy="431.7" cx="902.7" gradientTransform="matrix(-0.009 -1.657 1.726 0 -174.8 
2036)" r="290.6"/>
+</defs>
+<path id="G2_" clip-path="url(#g)" d="m850.5 373.3h-131v53.4h65.5v92.4c-8.8 
4.4-26.96 7.7-51.2 7.7-77 0-128.8-50.1-128.8-134.3 0-86.4 55.6-133.2 
134.8-133.2 39.1 0 63.83 7.15 84.2 
15.96l14.86-54.5c-17.1-8.25-52.83-17.61-98.5-17.61-122.7 0-206.4 75.4-206.4 
192.6-0.55 56.1 18.71 105.1 51.73 136.5 35.2 33.57 82.5 49.5 145.3 49.5 49.5 0 
95.8-12.1 119.4-20.91zm-545.1-166.2h-73.7l120 
370.9h77.53l128.2-370.9h-72.1c-29.95 100-70.52 209.4-92.45 
303.8-25.6-105.7-54.98-195.7-87.48-303.8zm-295.2 353.3c20.36 12.1 61.1 23.1 
100.2 23.1 95.8 0 140.9-51.73 140.9-111.2 
0-53.4-31.37-85.8-95.8-110.1-49.5-19.26-70.99-32.47-70.99-61.1 0-21.46 
18.71-44.57 61.6-44.57l1.11-55.6c-80.3 0-131 46.2-131 106.8 0 53.4 39.1 85.8 
100.2 107.9 47.3 17.1 66 33.57 66 61.6 0 30.3-24.2 50.63-67.7 50.63-34.67 
0-67.7-11-89.7-23.66z"/>
+<ellipse id="b" opacity="0.6" rx="381" ry="64" cy="680" cx="426" 
fill="url(#a)"/>
+<use xlink:href="#b" transform="matrix(0.62 0 0 0.62 161.7 258.1)"/>
+<path d="m190.8 606c131.4 131.4 344.6 131.4 476 0s131.4-344.6 
0.02-476c-131.3-131.4-344.7-131.4-476 0-131.4 131.4-131.4 344.6 0 
476zm327.6-55.5c-75.86 37.2-170.1 
24.27-233.2-38.78-63-63.1-75.98-157.3-38.79-233.2zm54.1-326.2c63.1 63.1 75.95 
157.4 38.74 233.2l-271.9-271.9c75.9-37.2 170.2-24.3 233.2 38.7z" 
fill="url(#c)"/>
+<path opacity="0.8" d="m203.5 142.6c-126.4 126.4-127.9 329.9-3.51 454.3s327.9 
122.8 454.3-3.53c126.4-126.4 128-329.9 3.56-454.3s-328-122.8-454.4 3.53zm40.66 
118.7l291.4 291.4c-116.1 51.2-196.5 
24.46-256.2-35.2-59.71-59.71-93.5-149.2-35.2-256.2zm79.4-79.4c95.9-51.2 
195.1-23.1 254.8 36.62 59.72 59.72 89.9 154.9 36.61 254.8l-291.4-291.4z" 
stroke="#fff" stroke-width="6" fill="url(#path2576_1_)"/>
+<path d="m212.5 151.7c-121.9 121.9-123.9 317.8-4.52 437.2s315.2 117.4 
437.1-4.54 124-317.8 4.56-437.2-315.3-117.4-437.2 4.54zm28.93 95.7l308 
308c-151.2 66.76-218.8 
25.45-276.1-31.85s-105.4-139.7-31.85-276.1zm68.2-68.2c117.6-64.7 217.5-24.1 
274.8 33.2s100.8 140.1 33.2 274.8l-307.9-307.9z" fill="url(#e)"/>
+<path d="m155.6 520.9c13.41 24.51 30.45 47.5 51.2 68.2 119.4 119.4 315.2 117.4 
437.1-4.53s124-317.8 4.57-437.2c-20.7-20.7-43.72-37.72-68.2-51.1-5.81 
31.2-14.42 61.99-25.83 91.9 10.49 7.58 20.1 15.86 28.75 24.51 57.3 57.3 106.2 
157.4 33.2 274.8l-149.5-149.5c-10.4 12.5-21.45 24.63-33.2 36.4-11.26 
11.25-22.89 21.92-34.87 31.95l149.4 149.4c-128.5 66.76-218.8 
25.46-276.1-31.84-8.83-8.83-17.45-18.27-25.43-28.39-29.67 11.24-60.1 19.75-91 
25.5z" fill="url(#G1_)"/>
+<g stroke-width="11" stroke-linejoin="round">
+<use xlink:href="#G2_" stroke="#2e3436" fill="url(#d)" color="#000"/>
+<use opacity="0.5" xlink:href="#G2_" clip-path="url(#f)" stroke="#fff" 
fill="none"/>
+</g>
+<use opacity="0.5" xlink:href="#G2_" fill="url(#h)"/>
+</svg>
\ No newline at end of file
diff --git a/tests/browser/articles/Somethingelse_svg_SVG.svg.license 
b/tests/browser/articles/Somethingelse_svg_SVG.svg.license
new file mode 100644
index 0000000..188ee70
--- /dev/null
+++ b/tests/browser/articles/Somethingelse_svg_SVG.svg.license
@@ -0,0 +1,2 @@
+This file is from https://commons.wikimedia.org/wiki/File:No_SVG.svg
+Author is Perhelion based on Acces_interdit_access_forbidden.svg
diff --git a/tests/browser/features/full_text.feature 
b/tests/browser/features/full_text.feature
index c9fbe7c..528994c 100644
--- a/tests/browser/features/full_text.feature
+++ b/tests/browser/features/full_text.feature
@@ -19,11 +19,6 @@
     | template:pickles                     | Template:Template Test is         
| not in          |        |
     | pickles/                             | Two Words is                      
| in              |        |
     | catapult/pickles                     | Two Words is                      
| in              |        |
-    # Make sure various ways of searching for a file name work
-    | File:Savepage-greyed.png             | File:Savepage-greyed.png is       
| not in          | image  |
-    | File:Savepage                        | File:Savepage-greyed.png is       
| not in          | image  |
-    | File:greyed.png                      | File:Savepage-greyed.png is       
| not in          | image  |
-    | File:greyed                          | File:Savepage-greyed.png is       
| not in          | image  |
     | File:"Screenshot, for test purposes" | File:Savepage-greyed.png is       
| not in          | image  |
     # You can't search for text inside a <video> or <audio> tag
     | "JavaScript disabled"                | none is                           
| not in          |        |
@@ -97,13 +92,13 @@
     When I search for <term>
     Then <page> is the first search result
   Examples:
-    | term                | page                |
+    |        term         |        page         |
     | namespace aliases   | $wgNamespaceAliases |
     | namespaceAliases    | $wgNamespaceAliases |
     | $wgNamespaceAliases | $wgNamespaceAliases |
     | namespace_aliases   | $wgNamespaceAliases |
     | NamespaceAliases    | $wgNamespaceAliases |
-    | wgnamespacealiases  | $wgNamespaceAliases |
+    | wgnamespacealiases  | $wgNamespaceAliases |    
     | snake case          | PFSC                |
     | snakeCase           | PFSC                |
     | snake_case          | PFSC                |
@@ -117,6 +112,8 @@
     | numericcase7        | NumericCase7        |
     | numericCase         | NumericCase7        |
     | getInitial          | this.getInitial     |
+    | reftoolbarbase js   | RefToolbarBase.js   |
+    | this.iscamelcased   | PFTest Paren        |
 
   @stemmer
   Scenario Outline: Stemming works as expected
@@ -193,3 +190,20 @@
     | वाङ्‍मय |
     | वाङ‍्मय |
     | वाङ्‌मय |
+
+  @setup_main @filenames
+  Scenario Outline: Portions of file names
+    When I search for <term>
+    Then I am on a page titled Search results
+      And <first_result> is the first search imageresult
+  Examples:
+    |            term            |          first_result          |
+    | File:Savepage-greyed.png   | File:Savepage-greyed.png       |
+    | File:Savepage              | File:Savepage-greyed.png       |
+    | File:greyed.png            | File:Savepage-greyed.png       |
+    | File:greyed                | File:Savepage-greyed.png       |
+    | File:Savepage png          | File:Savepage-greyed.png       |
+    | File:No_SVG.svg            | File:No SVG.svg                |
+    | File:No SVG.svg            | File:No SVG.svg                |
+    | File:No svg                | File:No SVG.svg                |
+    | File:svg.svg               | File:Somethingelse svg SVG.svg |
diff --git a/tests/browser/features/support/hooks.rb 
b/tests/browser/features/support/hooks.rb
index 9dd47a8..6ac6723 100644
--- a/tests/browser/features/support/hooks.rb
+++ b/tests/browser/features/support/hooks.rb
@@ -244,6 +244,8 @@
       And a page named PascalCase exists
       And a page named NumericCase7 exists
       And a page named this.getInitial exists
+      And a page named RefToolbarBase.js exists
+      And a page named PFTest Parrent exists with contents this.isCamelCased()
         )
     programmer_friendly = true
   end
@@ -540,3 +542,14 @@
     linksto = true
   end
 end
+
+filenames = false
+Before("@filenames") do
+  unless filenames
+    steps %(
+      Given a file named File:No_SVG.svg exists with contents No_SVG.svg and 
description [[Category:Red circle with left slash]]
+      And a file named File:Somethingelse_svg_SVG.svg exists with contents 
Somethingelse_svg_SVG.svg and description [[Category:Red circle with left 
slash]]
+        )
+    filenames = true
+  end
+end
diff --git a/tests/jenkins/Jenkins.php b/tests/jenkins/Jenkins.php
index 9756b2a..64baef4 100644
--- a/tests/jenkins/Jenkins.php
+++ b/tests/jenkins/Jenkins.php
@@ -52,6 +52,7 @@
 $wgOggThumbLocation = '/usr/bin/oggThumb';
 $wgGroupPermissions[ '*' ][ 'deleterevision' ] = true;
 $wgFileExtensions[] = 'pdf';
+$wgFileExtensions[] = 'svg';
 $wgCapitalLinks = false;
 $wgUseInstantCommons = true;
 $wgEnableUploads = true;
@@ -75,7 +76,6 @@
 
 // Extra helpful configuration but not really required
 $wgShowExceptionDetails = true;
-$wgCirrusSearchShowScore = true;
 
 $wgCirrusSearchLanguageWeight[ 'user' ] = 10.0;
 $wgCirrusSearchLanguageWeight[ 'wiki' ] = 5.0;

-- 
To view, visit https://gerrit.wikimedia.org/r/164150
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icfb9e80e5783a3b7fac100c52b1e10505216842e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: Manybubbles <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to