There are a few steps to use solr on your Newscoop website - you need to setup Solr updates and edit templates:
First, you must install a Java environment. On Debian or Ubuntu GNU/Linux you can do this with the command:
sudo apt-get install openjdk-6-jre
$ cp solr-4.1.0.tgz /var/www/ $ cd /var/www $ tar xvzf solr-4.1.0.tgz
$ cp -a /var/www/newscoop/example/solr/* /var/www/solr-4.1.0/example/solr/
example/solr/solr.xml
and add <core> for each language you are using (name must be language code) and copy en
folder for each of those cores.example
folder and runTo index languages other than the default of English, edit the file /var/www/solr-4.1.0/example/solr/solr.xml and add a <core> entry for each language you are using (the name of the core must be the ISO two-letter language code). Then copy the en folder for the name of each of those additional cores.
<cores adminPath="/admin/cores" defaultCoreName="en" host="${host:}" hostPort="${jetty.port:}" hostContext="${hostContext:}" zkClientTimeout="${zkClientTimeout:15000}"> <core name="en" instanceDir="en" /> </cores>
$ java -jar start.jar
services: search_indexer: class: Newscoop\Search\ArticleIndexer arguments: ["@em", "@search.index"] tags: - { name: kernel.event_listener, event: article.delete, method: update }
parameters: search: solr_server: "http://:/solr"
This custom_parameters.yml file will override every environment configuration.
$ cd /var/www/newscoop $ php application/console index:update --env=prod 100 (number of articles to be indexed; run as many times as number of indexed articles you want)
In production environments you should setup a cron job to run the same command periodically, so you update your Solr index with any new article or article changes in Newscoop.
Thats it - you have SOLR runing!
There has been error in communication with Booktype server. Not sure right now where is the problem.
You should refresh this page.