sbachenberg Sascha Schüller
Solr<form style="margin-left: 30px;" action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="UFSE48V5YWUU6"><input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"></form>

SolrStore Current Features

  • Fulltext Search powered by Apache Solr
  • Field based search on SMW Attributes

Variables for your Localsettings.php

$smwgDefaultStore = "SolrConnectorStore";
$wgSolrUrl = 'http://localhost:8080/solr/sofis';

//You should uncomment this, until you have written your own. For Template questions ask Sascha
$wgSolrTemplate = "_FIS";

//This array includes all namespaces that you don’t want to be indexed.
//Currently the SolrStore doesn’t work with the Advanced Search and the “Search in namespaces” feature.
//We have used css to hide that feature for the SOFISwiki.
$wgSolrOmitNS = array(1,2,3,4,5,6,7,8,9,10,11,13,14,15,102,106);

//This is to disable the “Did you mean ….” Feature. I recommend you to turn it off if you use $wgSolrFields
//with extra query parameters like “AND category:Projects”, because it will always recommend you the page “Projects”.
$wgSolrShowRelated = false;

//Turning this on will probably help you. SolrStore will now print the url he uses for search querys
//e.g. http://sofis.gesis.org:8080/solr/sofis/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on
$wgSolrDebug = false; 

$wgSolrFields = array(
                new SolrSearchFieldSet('Projekte', 
                      new SolrSearchField ( 'titleCombi', 'Titel(stichworte)', 'text'),
                      new SolrSearchField ( 'Institution_s', 'Institutionen', 'text'),
                      new SolrSearchField ( 'Personen', 'Personen', 'text'),
                      new SolrSearchField ( 'Id_s', 'SOFIS-Nr. (Erfassungsnr.)', 'number'),
                      new SolrSearchField ( 'Forschungsart', 'Forschungsart', 'checkbox', 'Auftragsforschung, Gutachten, Eigenprojekt, gefördert, Habilitationsschrift, Dissertation, Abschlussarbeit, Sonstiges'),
                      new SolrSearchField ( 'Stand', 'Stand der Forschungsarbeit', 'select', 'laufend, abgeschlossen, geplant, abgebrochen, unterbrochen, unbestimmt, keine Angabe')
                    'AND category:Projekte',
                    array('Relevanz' => 'score desc', 
                          'Änderungs Datum Asc' =>'editdate asc', 
                          'Änderungs Datum Desc'=>'editdate desc')
                new SolrSearchFieldSet('Institutionen', 
                      new SolrSearchField ( 'institutionCombi', 'Institution(sstichworte)', 'text' ),
                      new SolrSearchField ( 'ort', 'Ort', 'text'),
                      new SolrSearchField ( 'Land', 'Land', 'text'),
                      new SolrSearchField ( 'Inst-ID', 'SOFIS-Institutions-Nr.','number'),
                      new SolrSearchField ( 'Org-Typ', 'Organisationstyp', 'checkbox', 'Universität,Technische Universität,Pädagogische Hochschule,andere Hochschule ' )
                    'AND category:Institution',
                    array('Relevanz' => 'score desc', 
                          'Name Asc' =>'pagetitle asc', 
                          'Name Desc'=>'pagetitle desc'

new SolrSearchFieldSet('<Name of the Set>',array ('<Array of SolrSearchField’s >'),<Additional Querystring>,<AND|OR|NULL>,array('< Sort: "Label => Value" >')

new SolrSearchField ( '<Fieldname>', '<Label>', '<Type: text,number,checkbox,select>','<Komma seperated Values for Checkbox and Select>')



How to install Solr: http://www.mediawiki.org/wiki/Extension:SolrStore/Install_Solr

for more information see: http://www.mediawiki.org/wiki/Extension:SolrStore
<g:plus href="https://plus.google.com/106112458049390671253" size="badge"></g:plus>