Name Last Update
..
conf Loading commit data...
data Loading commit data...
lib Loading commit data...
README.md Loading commit data...

Solr Fulltext Search

To enable Solr for Jity follow these simple steps to start over:

###Configure Jity to use Solr and enable the search

To enable the search for Jity just open app/config/jity.yml and set the following options:

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