SilverStripe\FullTextSearch\Solr\Solr::solr_options
Configuration on where to find the solr server and how to get new index configurations into it.
Required fields: host (default: localhost) - The host or IP Solr is listening on port (default: 8983) - The port Solr is listening on path (default: /solr) - The suburl the solr service is available on Optional fields: version (default: 4) - The Solr server version. Currently supports 3 and 4 (you can add a sub-version like 4.5 if you like, but currently it has no effect) service (default: depends on version, Solr3Service for 3, Solr4Service for 4) the class that provides actual communcation to the Solr server extraspath (default: <basefolder>/fulltextsearch/conf/solr/{version}/extras/) - Absolute path to the folder containing templates which are used for generating the schema and field definitions. templates (default: <basefolder>/fulltextsearch/conf/solr/{version}/templates/) - Absolute path to the configuration default files, e.g. solrconfig.xml. indexstore => an array with mode - a classname which implements SolrConfigStore, or 'file', 'webdav' or 'post' When mode == SolrConfigStore_File or 'file' (indexes should be written on a local filesystem) path - The (locally accessible) path to write the index configurations to. remotepath (default: the same as indexpath) - The path that the Solr server will read the index configurations from When mode == SolrConfigStore_Post or 'post' (indexes should stored on a remote Solr server via post) This mode will require custom software on the remote solr server which handles receiving the post and passing on that information to solr. It is up to the user of this mode to write such software. path (default: /solrindex) - The suburl on the solr host that is set up to accept index configurations port (default: none) - The port on the remote server which is set up to receive the post information When mode == SolrConfigStore_WebDAV or 'webdav' (indexes should stored on a remote Solr server via webdav) auth (default: none) - A username:password pair string to use to auth against the webdav server path (default: /solrindex) - The suburl on the solr host that is set up to accept index configurations via webdav port (default: none) - The port for WebDAV if different from the Solr port remotepath - The path that the Solr server will read the index configurations from
Signature
protected function solr_options()
Returns
- array
- - The merged options