jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomm...@apache.org
Subject svn commit: r1685750 - /jackrabbit/site/live/oak/docs/query/lucene.html
Date Tue, 16 Jun 2015 09:42:47 GMT
Author: tommaso
Date: Tue Jun 16 09:42:47 2015
New Revision: 1685750

URL: http://svn.apache.org/r1685750
Log:
OAK-936: Site checkin for project Oak Documentation-1.4-SNAPSHOT

Modified:
    jackrabbit/site/live/oak/docs/query/lucene.html

Modified: jackrabbit/site/live/oak/docs/query/lucene.html
URL: http://svn.apache.org/viewvc/jackrabbit/site/live/oak/docs/query/lucene.html?rev=1685750&r1=1685749&r2=1685750&view=diff
==============================================================================
--- jackrabbit/site/live/oak/docs/query/lucene.html (original)
+++ jackrabbit/site/live/oak/docs/query/lucene.html Tue Jun 16 09:42:47 2015
@@ -1141,7 +1141,26 @@ Copied 8.5 MB in 218.7 ms
 <h5>Suggestions<a name="Suggestions"></a></h5>
 <p><tt>@since Oak 1.1.17, 1.0.15</tt></p>
 <p>In order to use Lucene index to perform search suggestions, the index definition
node (the one of type <tt>oak:QueryIndexDefinition</tt>)  needs to have the <tt>compatVersion</tt>
set to <tt>2</tt>, then one or more property nodes, depending on use case, need
to have the  property <tt>useForSuggest</tt> set to <tt>true</tt>,
such setting controls from which properties terms to be used for suggestions will be taken.</p>
-<p>Once the above configuration has been done, by default, the Lucene suggester is
updated every 10 minutes but that can be changed by setting the property <tt>suggestUpdateFrequencyMinutes</tt>
in the index definition node to a different value.</p></div>
+<p>Once the above configuration has been done, by default, the Lucene suggester is
updated every 10 minutes but that can be changed by setting the property <tt>suggestUpdateFrequencyMinutes</tt>
in the index definition node to a different value.</p>
+<p>Sample configuration for suggestions based on terms contained in <tt>jcr:description</tt>
property.</p>
+
+<div class="source">
+<pre>/oak:index/lucene-suggest
+  - jcr:primaryType = &quot;oak:QueryIndexDefinition&quot;
+  - compatVersion = 2
+  - type = &quot;lucene&quot;
+  - async = &quot;async&quot;
+  - suggestUpdateFrequencyMinutes = 60
+  + indexRules
+    - jcr:primaryType = &quot;nt:unstructured&quot;
+    + nt:base
+      + properties
+        - jcr:primaryType = &quot;nt:unstructured&quot;
+        + jcr:description
+          - propertyIndex = true
+          - analyzed = true
+          - useForSuggest = true
+</pre></div></div>
 <div class="section">
 <h5>Spellchecking<a name="Spellchecking"></a></h5>
 <p><tt>@since Oak 1.1.17, 1.0.13</tt></p>



Mime
View raw message