stem ($)
Use the stem ($) operator to search for terms that have the same linguistic root as the query term.
If you use the BASIC_LEXER to index your language, stemming performance can be improved by using the index_stems attribute.
The Oracle Text stemmer, licensed from XSoft Division of Xerox Corporation, supports the following languages with the BASIC_LEXER: English, French, Spanish, Italian, German, and Dutch.
Japanese stemming is supported with the JAPANESE_LEXER.
Specify your stemming language with the BASIC_WORDLIST wordlist preference.
Syntax
| Syntax | Description |
|---|---|
| $term | Expands a query to include all terms having the same stem or root word as the specified term. |
Examples for Stem ($) Operator
| Input | Expands To |
|---|---|
| $scream | scream screaming screamed |
| $distinguish | distinguish distinguished distinguishes |
| $guitars | guitars guitar |
| $commit | commit committed |
| $cat | cat cats |
| $sing | sang sung sing |
Behavior with Stopwords
If stem returns a word designated as a stopword, the stopword is not included in the query or highlighted by CTX_QUERY.HIGHLIGHT or CTX_QUERY.MARKUP.
Related Topics
- For more information about enabling the stem operator with BASIC_LEXER, see “BASIC_LEXER” in Oracle Text Indexing Elements