Nikerabbit has uploaded a new change for review.
https://gerrit.wikimedia.org/r/53043
Change subject: Non-pretty config for solr
......................................................................
Non-pretty config for solr
Change-Id: I5dc6f004b80206ba39f301a44e17d85aef3a342b
---
M TranslateSettings.php
A bin/solr-init
2 files changed, 22 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/translatewiki
refs/changes/43/53043/1
diff --git a/TranslateSettings.php b/TranslateSettings.php
index b76fb92..6d814f1 100644
--- a/TranslateSettings.php
+++ b/TranslateSettings.php
@@ -43,6 +43,22 @@
'public' => true,
);
+require( "$IP/extensions/Solarium/Solarium.php" );
+$wgTranslateTranslationServices['TTMServer'] = array(
+ 'type' => 'ttmserver',
+ 'class' => 'SolrTTMServer',
+ 'cutoff' => 0.75,
+ 'public' => true,
+ 'config' => array(
+ 'adapteroptions' => array(
+ 'host' => 'localhost',
+ 'timeout' => 10,
+ 'core' => 'production',
+ ),
+ 'adapter' => 'Solarium_Client_Adapter_Curl'
+ ),
+);
+
$wgHooks['Translate:GettextFFS:headerFields'][] = 'efHT';
function efHT( $specs, $group, $code ) {
global $wgSitename, $wgCanonicalServer;
diff --git a/bin/solr-init b/bin/solr-init
new file mode 100755
index 0000000..2fd7b96
--- /dev/null
+++ b/bin/solr-init
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cd /resources/solr/solr
+screen -dmS solr
+screen -S solr -p0 -X title "Solr"
+screen -S solr -p0 -X exec java -Djava.net.preferIPv4Stack=true
-Dsolr.solr.home=/resources/solr/cores/ -Djetty.host=localhost -jar start.jar
--
To view, visit https://gerrit.wikimedia.org/r/53043
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5dc6f004b80206ba39f301a44e17d85aef3a342b
Gerrit-PatchSet: 1
Gerrit-Project: translatewiki
Gerrit-Branch: master
Gerrit-Owner: Nikerabbit <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits