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 2016/02/01 16:36:28 UTC

svn commit: r1727952 - in /jackrabbit/oak/trunk: oak-doc/src/site/markdown/query/solr.md oak-solr-core/src/main/resources/solr/oak/conf/schema.xml

Author: tommaso
Date: Mon Feb  1 15:36:28 2016
New Revision: 1727952

URL: http://svn.apache.org/viewvc?rev=1727952&view=rev
Log:
OAK-3966 - provide only field specific copy field for facets

Modified:
    jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/solr.md
    jackrabbit/oak/trunk/oak-solr-core/src/main/resources/solr/oak/conf/schema.xml

Modified: jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/solr.md
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/solr.md?rev=1727952&r1=1727951&r2=1727952&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/solr.md (original)
+++ jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/solr.md Mon Feb  1 15:36:28 2016
@@ -293,15 +293,13 @@ More / different spellcheckers can be co
 
 `@since Oak 1.3.14`
 
-In order to enable proper usage of facets in Solr index the following fields need to be added to the _schema.xml_
+In order to enable proper usage of facets in Solr index the following dynamic field needs to be added to the _schema.xml_
 
         <dynamicField name="*_facet" type="string" indexed="false" stored="false" docValues="true" multiValued="true"/>
 
-with either a match all _copyField_ or specific ones.
+with dedicated _copyFields_ for specific properties.
 
-        <copyField source="tags" dest="tags_facet"/> <!-- facet on tags field/property -->
-        
-        <copyField source="*" dest="*_facet"/> <!-- facet on all fields/properties -->
+        <copyField source="jcr:primaryType" dest="jcr:primaryType_facet"/> <!-- facet on jcr:primaryType field/property -->
 
 #### Notes
 As of Oak version 1.0.0:

Modified: jackrabbit/oak/trunk/oak-solr-core/src/main/resources/solr/oak/conf/schema.xml
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-solr-core/src/main/resources/solr/oak/conf/schema.xml?rev=1727952&r1=1727951&r2=1727952&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-solr-core/src/main/resources/solr/oak/conf/schema.xml (original)
+++ jackrabbit/oak/trunk/oak-solr-core/src/main/resources/solr/oak/conf/schema.xml Mon Feb  1 15:36:28 2016
@@ -152,7 +152,7 @@
     <copyField source="path_exact" dest="path_child"/>
     <copyField source="path_exact" dest=":path"/>
     <copyField source="*" dest="catch_all"/>
-    <copyField source="*" dest="*_facet"/>
+    <copyField source="jcr:primaryType" dest="jcr:primaryType_facet"/>
     <copyField source="jcr:title" dest=":spellcheck"/>
     <copyField source="jcr:description" dest=":spellcheck"/>
     <copyField source="jcr:title" dest=":suggest"/>