1 ## Solr Search Provider for Reddit
3 The Solr search provider lets you run Reddit's search on your own Solr server.
8 To set up your own solr instance:
11 sudo apt-get -y install solr-tomcat
12 sudo ln -s /path/to/reddit/solr/schema.xml /usr/share/solr/conf
13 sudo service tomcat6 start
16 You should now be able to connect to Solr at http://127.0.0.1:8080
18 To configure reddit to use Solr for search, set the search provider to **solr**
22 search_provider = solr
25 Then add the following config lines:
27 # version of solr service--versions 1.x and 4.x have been tested.
28 # only the major version number matters here
30 # solr search service hostname or IP
31 solr_search_host = 127.0.0.1
32 # hostname or IP for link upload
33 solr_doc_host = 127.0.0.1
34 # hostname or IP for subreddit search
35 solr_subreddit_search_host = 127.0.0.1
36 # hostname or IP subreddit upload
37 solr_subreddit_doc_host = 127.0.0.1
38 # solr port (assumed same on all hosts)
40 # solr4 core name (not used with Solr 1.x)
41 solr_core = collection1
43 # limit is hard-coded to 1000
44 # set to 1 for testing
46 # optionally, you may select your solr query parser here
47 # see documentation for your version of Solr
53 If you build Solr from source, the default port will be 8983.