Search functionality for WeRelate.org
The search functionality is in two pieces: a customized SOLR search engine, and an indexing tool.
conf/indexer.properties.sampleto match your environment
conf/scripts.conf.sampleto match your environment
To run the customized SOLR search engine:
- Set several environment variables in tomcat
memcache_addressis the address of your memcache server; e.g., 127.0.0.1:11211
db_urlis a jdbc connection string
db_useris the database user name
dbPasswordis the database password
- and set a property:
-Dsolr.solr.homewill the root directory of your solr installation
- you may be able to set these in /etc/default/tomcat7 using something like
- JAVA_OPTS="-Djava.awt.headless=true -Xms1100m -Xmx1100m -Dsolr.solr.home=/mnt/index"
- Copy the contents of the
distdirectory to the directory pointed to by solr.solr.home
solr/apache-solr-3.1.0.warto your webapps directory
To run the indexer
- This search project depends upon the Names project, which is in the middle of being revised. If you want to use this Search project in its current state, contact me directly at dallan werelate.org and I will walk you through it.