INSTALL.txt 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Prerequisite:
  2. - Java 6 or higher
  3. Steps necessary:
  4. - Download Solr PHP client
  5. - Setting up Solr
  6. Download Solr PHP client
  7. ------------------------
  8. This module uses an external PHP library for communicating with Solr servers. Go
  9. to [1] and download version r60 of this library. (The older version r22 is also
  10. still supported, but this might change in the future.)
  11. [1] http://code.google.com/p/solr-php-client/downloads/list
  12. Afterwards, unpack this archive to Drupal's libraries folder, so the directory
  13. tree looks like this:
  14. DRUPAL_ROOT/sites/all/libraries/
  15. |- SolrPhpClient
  16. |- Apache/
  17. |- ChangeLog
  18. ...
  19. The library should then be found by the module.
  20. Note: If you have the Libraries API [2] module installed, you can also place the
  21. library into any other directory recognized by the Libraries API, e.g.
  22. (depending on the module version):
  23. - DRUPAL_ROOT/libraries
  24. - DRUPAL_ROOT/profiles/PROFILE/libraries
  25. - DRUPAL_ROOT/sites/CONF_DIR/libraries
  26. [2] http://drupal.org/project/libraries
  27. Setting up Solr
  28. ---------------
  29. In order for this module to work, you will first need to set up a Solr server.
  30. For this, you can either purchase a server from a web Solr hosts or set up your
  31. own Solr server on your web server (if you have the necessary rights to do so).
  32. If you want to use a hosted solution, a number of companies are listed on the
  33. module's project page [3]. Otherwise, please follow the instructions below.
  34. [3] http://drupal.org/project/search_api_solr
  35. Download the latest version of Solr 3.x from [4] and unpack the archive
  36. somewhere outside of your web server's document tree.
  37. [4] http://www.apache.org/dyn/closer.cgi/lucene/solr/
  38. This module also supports Solr 1.4, but its use is discouraged due to worse
  39. performance and some features not being supported. Solr 4.x is not supported by
  40. this module yet.
  41. For small websites, using the example application, located in $SOLR/example/,
  42. usually suffices. In any case, you can use it for developing andd testing. The
  43. following instructions will assume you are using the example application,
  44. otherwise you should be able to substitute the corresponding paths.
  45. Before starting the Solr server you will have to make sure it uses the proper
  46. configuration files. These are located in the solr-conf/ directory in this
  47. module, in a sub-directory according to the Solr version you are using. Copy all
  48. the files from that directory into Solr's configuration directory
  49. ($SOLR/example/solr/conf/ in case of the example application), after backing up
  50. all files that would be overwritten.
  51. You can then start Solr. For the example application, go to $SOLR/example/ and
  52. issue the following command (assuming Java is correctly installed):
  53. java -jar start.jar
  54. Afterwards, go to [5] in your web browser to ensure Solr is running correctly.
  55. [5] http://localhost:8983/solr/admin/
  56. You can then enable this module and create a new server, using the "Solr search"
  57. service class. Enter the hostname, port and path corresponding to your Solr
  58. server in the appropriate fields. The default values already correspond to the
  59. example application, so you won't have to change the values if you use that.
  60. If you are using HTTP Authentication to protect your Solr server you also have
  61. to provide the appropriate user and password here.