You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by to...@apache.org on 2014/07/22 12:14:53 UTC

svn commit: r1612531 - /jackrabbit/oak/trunk/oak-doc/src/site/markdown/query.md

Author: tommaso
Date: Tue Jul 22 10:14:52 2014
New Revision: 1612531

URL: http://svn.apache.org/r1612531
Log:
OAK-1695 - embdedded Solr server doc

Modified:
    jackrabbit/oak/trunk/oak-doc/src/site/markdown/query.md

Modified: jackrabbit/oak/trunk/oak-doc/src/site/markdown/query.md
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-doc/src/site/markdown/query.md?rev=1612531&r1=1612530&r2=1612531&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-doc/src/site/markdown/query.md (original)
+++ jackrabbit/oak/trunk/oak-doc/src/site/markdown/query.md Tue Jul 22 10:14:52 2014
@@ -316,7 +316,7 @@ To set up the Solr index to be asynchron
 TODO Node aggregation.
 
 ##### Index definition for Solr index
-
+<a name="solr-index-definition"></a>
 The index definition node for a Solr-based index:
 
  * must be of type `oak:QueryIndexDefinition`
@@ -350,15 +350,42 @@ Apache Solr supports multiple deployment
  * SolrCloud cluster, with Zookeeper instance(s) to control a dynamic, resilient set of Solr servers for high 
  availability and fault tolerance
 
-The Oak Solr index can be configured to use an 'embedded Solr server' or either a 'remote Solr server' (being able to 
+The Oak Solr index can be configured to either use an 'embedded Solr server' or a 'remote Solr server' (being able to 
 connect to a single remote instance or to a SolrCloud cluster via Zookeeper).
 
 ##### OSGi environment
-see the 'Solr Server Configuration' section on the [OSGi configuration](osgi_config.html) page
+All the Solr configuration parameters are described in the 'Solr Server Configuration' section on the 
+[OSGi configuration](osgi_config.html) page.
+
+Create an index definition for the Solr index, as described [above](#solr-index-definition).
+Once the query index definition node has been created, access OSGi ConfigurationAdmin via e.g. Apache Felix WebConsole:
+
+ 1. find the 'Oak Solr indexing / search configuration' item and eventually change configuration properties as needed
+ 2. find either the 'Oak Solr embedded server configuration' or 'Oak Solr remote server configuration' items depending 
+ on the chosen Solr architecture and eventually change configuration properties as needed
+ 3. find the 'Oak Solr server provider' item and select the chosen provider ('remote' or 'embedded') 
 
 ##### non OSGi environment
 TODO
 
+##### Recommended Solr server configurations
+Depending on the use case, different Solr server configurations are recommended.
+
+###### Embedded Solr server
+The embedded Solr server is recommended for developing and testing a Solr indexer for an Oak repository. With that an 
+in-memory Solr instance is started in the same JVM of the Oak repository, without HTTP bindings (for security purposes 
+as it'd allow HTTP access to repository data independently of ACLs). 
+Configuring an embedded Solr server mainly consists of providing the path to a standard [Solr home dir](https://wiki.apache.org/solr/SolrTerminology) 
+(solr.home.path Oak property) to be used to start Solr; this path can be either relative or absolute, if such a path 
+would not exist then the default configuration provided with _oak-solr-core_ artifact would be put in the given path.
+To start an embedded Solr server with a custom configuration (e.g. different schema.xml / solrconfig.xml than the default
+ ones) the (modified) Solr home files would have to be put in a dedicated directory, according to Solr home structure, so 
+ that the solr.home.path property can be pointed to that directory.
+
+###### Remote Solr server
+
+###### SolrCloud cluster
+
 #### Differences with the Lucene index
 As of Oak version 1.0.0: