Setup the Solr Extension¶
- Install the extension itself
- Include the static TypoScript from the solr extension.
- Set config.index_enable = 1 inside your TS template
- Check that the constants
plugin.tx_solr.solr.*are set correctly.
- On the root page of your installation's page tree, make sure the checkbox "is_siteroot" (Is root of website) is activated
- Make sure to wrap content to be indexed with <!-- TYPO3SEARCH_begin --> and <!-- TYPO3SEARCH_end -->. These markers help to specify which parts of your pages you want to have indexed. You probably don't want the menus indexed.
- Once you have done all of the above you can go to your website and browse some pages. DevLog should have some messages about pages getting indexed. However, if you search for them, you probably won't find anything just now, because the data is not yet committed.
- How to commit
- Go to
solrconfig.xmland look for
autoCommityou can set
1to commit after each submitted document. However, this is really slow. Remove this before going live
- Or (preferred), use the following CURL command:
- Go to
curl http://localhost:PORT/PATH-TO-SOLR/update -H "Content-Type: text/xml" --data-binary '<commit />'
Note that the core name is part of the path. In a default install (using the script from SVN), the command will be
curl http://localhost:8080/solr/core_en/update -H "Content-Type: text/xml" --data-binary '<commit />'
Before going production¶
- Did you disable error logging in TypoScript? Check
- set up some automatic crawling configuration?
- Did you tune the
solrconfig.xmlfor live needs?