Commit 33a6ced2 authored by Hermann Mayer's avatar Hermann Mayer

Added some documentation for the Apache Solr config.

parent dcb8b46b
Install Notes
=============
##Required Steps
Clone latest dependencies by init the Git Submodules
git submodule init
......@@ -54,7 +56,21 @@ Load all Fixtures
php app/console doctrine:fixtures:load
---
##Optional Steps
To use Apache Solr as Search Server with Jity read
the docs/Solr/README.md file.
To enable scheduled task execution just
add the following lines to cron:
# Jity
#################
0 * * * * cd /path/to/jity && php app/console presta:sitemaps:dump >/dev/null 2>&1;
To edit the cron config just run:
crontab -e
Deploy Notes
......
README
======
[![Build Status](http://jenkins.jity.de/job/jity-jity/badge/icon)](http://jenkins.jity.de/job/jity-jity/)
What is Jity?
-----------------
Jity is a PHP 5.3 Content Management System which can be used
to build personal or any purpose websites with many features
such as the blog functionality.
Furthermore were many interessting concepts implemented such
as Service Pages and a well designed core structure.
Requirements
------------
Jity is only supported on PHP 5.3.3 and up.
Be warned that PHP versions before 5.3.8 are known to be buggy and might not
work for you:
* before PHP 5.3.4, if you get "Notice: Trying to get property of
non-object", you've hit a known PHP bug (see
https://bugs.php.net/bug.php?id=52083 and
https://bugs.php.net/bug.php?id=50027);
* before PHP 5.3.8, if you get an error involving annotations, you've hit a
known PHP bug (see https://bugs.php.net/bug.php?id=55156).
Installation
------------
Just have a look at the INSTALL.md located at the root of the project.
Contributing
------------
Jity is an open source, community-driven project. If you'd like to contribute,
please read the [Contributing Code][1]. If you're submitting a pull request,
please follow the guidelines in the [Submitting a Patch][2] section.
Jity uses the same standards as Symfony so this should be good point to start.
Running Jity Tests
------------------
Just run the following command to make a build with all tests
and code analysis:
ant -f build-ant.xml
[1]: http://symfony.com/doc/current/contributing/code/index.html
[2]: http://symfony.com/doc/current/contributing/code/patches.html#check-list
......@@ -3,11 +3,66 @@ Solr Fulltext Search
To enable Solr for Jity follow these simple steps to start over:
* Configure Jity to use Solr and enable the search
###Configure Jity to use Solr and enable the search
* Configure Solr with a predefined Solr-Core-Config
To enable the search for Jity just open app/config/jity.yml
and set the following options:
* Setup the data-config.xml to fit your MySQL server config
jity_homepage:
search:
enable: true
Now you enabled the displaying of the search field. To
setup Jity to correctly use Apache Solr configure it with the
help of app/config/solr.yml
nelmio_solarium:
clients:
default:
host: localhost
port: 8983
path: /solr
core: jity
timeout: 5
###Configure Solr with a predefined Solr-Core-Config
To start over with Apache Solr you need to add a new
Solr Core. You received a working copy of predefined
Core config which is located in the docs/Solr/conf/
directory.
Just edit the following file to fit your needs.
(Db Config, Passwords, Hosts, etc.)
Open and edit the data-config.xml.dist and save a
configured copy as data-config.xml so Apache Solr
can find it.
Finally copy this lib/ data/ and conf/ structure over
to the Apache Solr Home.
###Import MySQL Data
You need to download the driver file from MySQL Download Page.
> http://dev.mysql.com/downloads/connector/j
Just extract the jar archiv to the lib/ directory.
###Running the DataImporter with Cron
To run the importer at scheduled intervalls just
add the following lines to cron:
# Jity
#################
0 * * * * curl -s --output /dev/null 'http://localhost:8983/solr/dataimport?command=full-import&clean=false&commit=true&optimize=true'
To edit the cron config just run:
crontab -e
Sources
=======
......
#Wed Nov 21 20:54:27 CET 2012
content.last_index_time=2012-11-21 20\:54\:27
last_index_time=2012-11-21 20\:54\:27
#Thu Nov 22 21:05:33 CET 2012
content.last_index_time=2012-11-22 21\:05\:33
last_index_time=2012-11-22 21\:05\:33
......@@ -59,6 +59,7 @@
-->
<lib dir="../../../dist/" regex="apache-solr-dataimporthandler-.*\.jar" />
<lib dir="../../lib/" regex="apache-solr-dataimporthandler-.*\.jar" />
<!-- A 'dir' option by itself adds any files found in the directory
to the classpath, this is useful for including all jars in a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment