Difference between cts: contains and fn: contains
06 September 2019 09:21 AM
Difference between cts:contains and fn:contains
1) fn:contains is a substring match, where as cts:contains performs query matching
2) cts:contains therefore can utilize general queries and stemming, where fn:contains does not
<test>daily running makes you fit</test>
The cts:contains examples are checking the document against cts:word-querys. Stemming reduces words down to their root, allowing for smaller term lists.
1) Words from different languages are treated differently, and will not stem to the same root word entry from another language.
2) Note: Nouns will not stem to verbs and vice versa. For example, the word “runner” will not stem to “run”.