TODO: Update Javadoc to new Interface! Note that is only refers to the Files and not the Solr server (or EmbeddedSolrServer). Users need to use the {@link SolrServerProvider#getSolrServer(SolrServerTypeEnum,String,String)} to get an {@link SolrServer} instancebased on the directory provided by this Interface.
The {@link #MANAGED_SOLR_DIR_PROPERTY} property can be used to define the location of the internallymanaged index. Implementations need to load this property by the {@link ComponentContext} if running withinan OSGI container or otherwise use the system properties. In cases a relative path is configured the "user.dir" need to be used as base. Implementations need also to provide an default value in case no configuration is present.
Implementations need also support property substitution based on the system properties for the {@link #MANAGED_SOLR_DIR_PROPERTY}. E.g. parsing the value "${user.home}/.stanbol/indexes" will create the managed solr indexes within the home directory of the user.
This Service is also useful if one needs to initialise an own Solr Core for the manage Solr Server. In this case the {@link #getManagedDirectory()} method can be used to get the managed Solr directory and newindices can be added as sub directories. Utility methods for initialising cores are available as part of the {@link ConfigUtils}. @author Rupert Westenthaler
|
|
|
|