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 th...@apache.org on 2015/06/03 15:14:15 UTC
svn commit: r1683319 -
/jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/lucene.md
Author: thomasm
Date: Wed Jun 3 13:14:15 2015
New Revision: 1683319
URL: http://svn.apache.org/r1683319
Log:
OAK-301 : Document Oak
Modified:
jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/lucene.md
Modified: jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/lucene.md
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/lucene.md?rev=1683319&r1=1683318&r2=1683319&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/lucene.md (original)
+++ jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/lucene.md Wed Jun 3 13:14:15 2015
@@ -208,6 +208,22 @@ includePropertyTypes
: String array of property types which should be indexed. The values can be one
specified in [PropertyType Names][1]
+##### Cost Overrides
+
+By default, the cost of using this index is calculated follows: For each query,
+the overhead is one operation. For each entry in the index, the cost is one.
+The following only applies to `compatVersion` 2 only:
+To use use a lower or higher cost, you can set the following optional properties
+in the index definition:
+
+ - costPerExecution (Double) = 1.0
+ - costPerEntry (Double) = 1.0
+
+Please note that typically, those settings don't need to be explicitly set.
+Cost per execution is the overhead of one query.
+Cost per entry is the cost per node in the index.
+Using 0.5 means the cost is half, which means the index would be used used more often
+(that is, even if there is a different index with similar cost).
##### Indexing Rule inheritance