You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by Apache Wiki <wi...@apache.org> on 2008/06/20 14:58:53 UTC
[Jackrabbit Wiki] Update of "SimilaritySearch" by MarcelReutegger
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Jackrabbit Wiki" for change notification.
The following page has been changed by MarcelReutegger:
http://wiki.apache.org/jackrabbit/SimilaritySearch
The comment on the change is:
Added info about conditions that must be met for the similarity search to work
------------------------------------------------------------------------------
Starting with version, 1.4 Jackrabbit allows you to search for nodes that are similar to an existing node.
+
+ Similarity is determined by looking up terms that are common to nodes. There are some conditions that must be met for a term to be considered. This is required to limit the number possibly relevant terms.
+
+ * Only terms with at least 4 characters are considered.
+ * Only terms that occur it at least 5 nodes are considered.
+
+ '''Note''': The similarity functionality requires that the {{{supportHightlighting}}} is enabled. Please make sure that you have the following parameter set for the query handler in your workspace.xml.
+
+ {{{
+ <param name="supportHighlighting" value="true"/>
+ }}}
The functions are called rep:similar() (in XPath) and similar() (in SQL) and have two arguments: