Extension:SolrStore

The SolrStore extension is a new provider of searches for Semantic MediaWiki. You can search your semantic properties with the power of a fulltext search engine (lucene), by defining custom search forms.

Requirements
Having Semantic MediaWiki installed is a precondition for the SolrStore extension. The code will not work without it.

The following software is required:
 * Semantic MediaWiki
 * Apache Solr
 * Apache Tomcat (or any other servlet container supported by Solr itself: Glassfish, JBoss, Jetty, Resin, Weblogic or WebSphere)
 * php Client URL Library (cURL)

Download
Since we migrated to Git, we can not update our extension! This means you have to download our extension from SourceForge if you want the newest Version:

Download: https://sourceforge.net/projects/smwsolrstore/files/?source=navbar

We have a new definition for the SearchFields in Version 0.8: http://sourceforge.net/p/smwsolrstore/home/Overview/

Installation
At first you need to install Solr. After that copy the Solr Configuration files from /SolrStore/solr-example/core0 to one of your Solr cores and restart your Tomcat.

To install this extension, add the following to LocalSettings.php:

Template System

 * If you prefer to use other template for example: "FIS Template"
 * add to LocalSettings.php

create template

 * Conditions to use:
 * 1) create the file in: ./extensions/SolrStore/templates
 * 2) make a copy of the existing SolrSearchTemplate_Standart.php
 * 3) rename the file to: SolrSearchTemplate_NEWNAME.php
 * 4) rename the class to: SolrSearchTemplate_NEWNAME
 * 5) add to LocalSettings.php:

For faster indexing use "maintenance/runJobs.php" and run some Jobs.

Version

 * Update 2012-09-26
 * Now SolrStore indexes all pages and the fullwiki text of a page
 * New parameters
 * Many bugs fixed

Known bugs / features

 * Some queries still end in exceptions, like an open "(" without a closing ")"
 * SolrStore has some problems with namespaces. If you delete a talk page, Solr also removes the corresponding regular page from his index. This means you have to open and save the regular page again, for Solr to index the page again. Do not worry this does not mean that your page gets deleted, it just will not show up in your search for a short time.

Demo
If you want to try our search visit:
 * http://sofis.gesis.org/sofiswiki/Spezial:SolrSearch - Fieldbased Search
 * http://sofis.gesis.org/sofiswiki/Spezial:Search - Mediawiki Search with Solr