DCausse has uploaded a new change for review.

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

Change subject: Add langguage detector plugin
......................................................................

Add langguage detector plugin

Set default profile to small-text

Bug: T110077
Change-Id: I37f7bbeb251aa2fb84c0398be47b2c5040c70ae6
---
M puppet/modules/elasticsearch/files/elasticsearch.yml
M puppet/modules/role/manifests/cirrussearch.pp
2 files changed, 10 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/vagrant 
refs/changes/80/234280/1

diff --git a/puppet/modules/elasticsearch/files/elasticsearch.yml 
b/puppet/modules/elasticsearch/files/elasticsearch.yml
index 23665bb..73e06d0 100644
--- a/puppet/modules/elasticsearch/files/elasticsearch.yml
+++ b/puppet/modules/elasticsearch/files/elasticsearch.yml
@@ -1,2 +1,5 @@
 ## Turn off global accessibility.
 network.host: "127.0.0.1"
+
+## Use short-text langdetect profile
+profile: "/langdetect/short-text/"
diff --git a/puppet/modules/role/manifests/cirrussearch.pp 
b/puppet/modules/role/manifests/cirrussearch.pp
index 4e0860d..fbcb8af 100644
--- a/puppet/modules/role/manifests/cirrussearch.pp
+++ b/puppet/modules/role/manifests/cirrussearch.pp
@@ -50,6 +50,13 @@
         name    => 'extra',
         version => '1.7.0',
     }
+    ## Language detection plugin ( built from 
https://github.com/jprante/elasticsearch-langdetect )
+    elasticsearch::plugin { 'langdetect':
+        group   => 'org.xbib.elasticsearch.plugin',
+       name    => 'elasticsearch-langdetect',
+       version => '1.7.0.0',
+       url     => 
'https://archiva.wikimedia.org/repository/releases/org/xbib/elasticsearch/plugin/elasticsearch-langdetect/1.7.0.0/elasticsearch-langdetect-1.7.0.0.zip'
+    }
 
     mediawiki::wiki { 'cirrustest': }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I37f7bbeb251aa2fb84c0398be47b2c5040c70ae6
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: DCausse <dcau...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to