SAP ABAP Class CL_ESH_QP_EN_STEMMER (Algorithmic Stemmer)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-EIM-ESH (Application Component) NetWeaver Enterprise Search
     S_ESH_ENG_QUERY_PARSER_RD (Package) Recursive descent query parser
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_ESH_QP_STEMMER Algorithmic Stemmer 20091027
Properties
Class CL_ESH_QP_EN_STEMMER  
Short Description Algorithmic Stemmer    
Super Class CL_ESH_QP_STEMMER Algorithmic Stemmer 
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package S_ESH_ENG_QUERY_PARSER_RD   Recursive descent query parser 
Created 20090813   SAP 
Last change 20110908   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class CL_ESH_QP_EN_STEMMER has no interface implemented.
Friends
Class CL_ESH_QP_EN_STEMMER has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MT_EXCEPTIONS Static Attribute Private Type reference (TYPE) LTT_STEM_EXCEPTIONS Stem exceptions 20090813
2 MT_STEM_STEP_2 Static Attribute Private Type reference (TYPE) LTT_STEM_STEPS Stemmer steps 20090813
3 MT_STEM_STEP_3 Static Attribute Private Type reference (TYPE) LTT_STEM_STEPS Stemmer steps 20090813
4 MT_STEM_STEP_4 Static Attribute Private Type reference (TYPE) LTT_STEM_STEPS Stemmer steps 20090813
5 MV_CHARS_LI_ENDING Constant Private Type reference (TYPE) STRING 'cdeghkmnrt' 20090813
6 MV_CHARS_VOWEL Constant Private Type reference (TYPE) STRING 'aeiouy' 20090813
7 MV_REGEX_DOUBLE Static Attribute Private Object reference (TYPE REF TO) CL_ABAP_REGEX Regular expressions 20090813
Methods
# Method Level Visibility Method type Description Created on
1 CONSTRUCTOR Instance method Public Constructor Constructor 20090813
2 CONSTRUCTOR_SAVE Static method Public Method 20091027
3 CONTAINS_VOWEL Static method Private Method Contains char 20090813
4 DELETE_SUFFIX Static method Private Method Replace suffix 20090813
5 DELETE_SUFFIX_BY_LENGTH Static method Private Method Replace suffix 20090813
6 GET_STEM_SAVE Instance method Public Method Get stem 20091027
7 INSERT_STEP Static method Private Method 20090813
8 IS_SHORT_SYLLABLE Static method Private Method Is short 20090813
9 IS_SHORT_WORD Static method Private Method Is short 20090813
10 MATCH_SUFFIX Static method Private Method Replace suffix 20090813
11 MATCH_SUFFIX_IN_REGION Static method Private Method Replace suffix 20090813
12 NORMALIZE Static method Private Method 20090813
13 REPLACE_ALL Static method Private Method Replace all occurences of pattern in text with substitute 20090813
14 REPLACE_SUFFIX Static method Private Method Replace suffix 20090813
15 REPLACE_SUFFIX_1B Static method Private Method Replace suffix 20090813
16 REPLACE_SUFFIX_BY_LENGTH Static method Private Method Replace suffix 20090813
17 REPLACE_SUFFIX_IN_REGION Static method Private Method Replace suffix 20090813
18 SET_R1 Static method Private Method Set region R1 20090813
19 SET_R2 Static method Private Method Set region R2 20090813
Events
Class CL_ESH_QP_EN_STEMMER has no event.
Types
Class CL_ESH_QP_EN_STEMMER has no local type.
Method Signatures

Method CONSTRUCTOR Signature

Method CONSTRUCTOR on class CL_ESH_QP_EN_STEMMER has no parameter.
# Exception Resumable Description Created on
1 CX_ESH_QP_STEMMER Stemmer Exception 20090813

Method CONSTRUCTOR_SAVE Signature

Method CONSTRUCTOR_SAVE on class CL_ESH_QP_EN_STEMMER has no parameter.
# Exception Resumable Description Created on
1 CX_ESH_QP_STEMMER Stemmer Exception 20091027

Method CONTAINS_VOWEL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_LEN Call by reference Type reference (TYPE) I 20090813
2 Importing IV_OFF Call by reference Type reference (TYPE) I 20090813
3 Importing IV_TEXT Call by reference Type reference (TYPE) STRING 20090813
4 Returning RV_STATUS Value transfer Type reference (TYPE) ABAP_BOOL 20090813

Method CONTAINS_VOWEL on class CL_ESH_QP_EN_STEMMER has no exception.

Method DELETE_SUFFIX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_TEXT Call by reference Type reference (TYPE) STRING 20090813
2 Exporting EV_DELETED_FLAG Call by reference Type reference (TYPE) ABAP_BOOL 20090813
3 Importing IV_SUFFIX Call by reference Type reference (TYPE) CHAR32 20090813

Method DELETE_SUFFIX on class CL_ESH_QP_EN_STEMMER has no exception.

Method DELETE_SUFFIX_BY_LENGTH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_TEXT Call by reference Type reference (TYPE) STRING 20090813
2 Exporting EV_DELETED_FLAG Call by reference Type reference (TYPE) ABAP_BOOL 20090813
3 Importing IV_SUFFIX_LEN Call by reference Type reference (TYPE) I 20090813

Method DELETE_SUFFIX_BY_LENGTH on class CL_ESH_QP_EN_STEMMER has no exception.

Method GET_STEM_SAVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_WORD Call by reference Type reference (TYPE) STRING 20091027
2 Returning RT_STEM Value transfer Type reference (TYPE) STRING 20091027

Method GET_STEM_SAVE on class CL_ESH_QP_EN_STEMMER has no exception.

Method INSERT_STEP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_STEPS Call by reference Type reference (TYPE) LTT_STEM_STEPS Stem Steps 20090813
2 Importing IV_REPLACEMENT Call by reference Type reference (TYPE) CHAR32 Character field, length 32 20090813
3 Importing IV_SUFFIX Call by reference Type reference (TYPE) CHAR32 Character field, length 32 20090813

Method INSERT_STEP on class CL_ESH_QP_EN_STEMMER has no exception.

Method IS_SHORT_SYLLABLE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_SYLLABLE Call by reference Type reference (TYPE) STRING 20090813
2 Returning RV_SUCCESS Value transfer Type reference (TYPE) ABAP_BOOL 20090813

Method IS_SHORT_SYLLABLE on class CL_ESH_QP_EN_STEMMER has no exception.

Method IS_SHORT_WORD Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_R1 Call by reference Type reference (TYPE) I 20090813
2 Importing IV_WORD Call by reference Type reference (TYPE) STRING 20090813
3 Returning RV_SUCCESS Value transfer Type reference (TYPE) ABAP_BOOL 20090813

Method IS_SHORT_WORD on class CL_ESH_QP_EN_STEMMER has no exception.

Method MATCH_SUFFIX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_SUFFIX Call by reference Type reference (TYPE) CHAR32 20090813
2 Importing IV_TEXT Call by reference Type reference (TYPE) STRING 20090813
3 Returning RV_MATCHED_FLAG Value transfer Type reference (TYPE) ABAP_BOOL 20090813

Method MATCH_SUFFIX on class CL_ESH_QP_EN_STEMMER has no exception.

Method MATCH_SUFFIX_IN_REGION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_LEN Call by reference Type reference (TYPE) I Length of suffix matched (regex) 20090813
2 Exporting EV_MATCHED_FLAG Call by reference Type reference (TYPE) ABAP_BOOL 20090813
3 Exporting EV_MATCHED_IN_REGION_FLAG Call by reference Type reference (TYPE) ABAP_BOOL 20090813
4 Importing IV_OFF Call by reference Type reference (TYPE) I 20090813
5 Importing IV_SUFFIX Call by reference Type reference (TYPE) CHAR32 Afffix 20090813
6 Importing IV_SUFFIX_REGEX Call by reference Type reference (TYPE) STRING 20090813
7 Importing IV_TEXT Call by reference Type reference (TYPE) STRING 20090813

Method MATCH_SUFFIX_IN_REGION on class CL_ESH_QP_EN_STEMMER has no exception.

Method NORMALIZE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_STRING Call by reference Type reference (TYPE) STRING 20090813
2 Returning RV_STRING Value transfer Type reference (TYPE) STRING 20090813

Method NORMALIZE on class CL_ESH_QP_EN_STEMMER has no exception.

Method REPLACE_ALL Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_PATTERN Call by reference Type reference (TYPE) CLIKE 20090813
2 Importing IV_SUBSTITUTE Call by reference Type reference (TYPE) CLIKE 20090813
3 Importing IV_TEXT Call by reference Type reference (TYPE) CLIKE 20090813
4 Returning RV_NEWTEXT Value transfer Type reference (TYPE) STRING 20090813

Method REPLACE_ALL on class CL_ESH_QP_EN_STEMMER has no exception.

Method REPLACE_SUFFIX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_TEXT Call by reference Type reference (TYPE) STRING 20090813
2 Exporting EV_REPLACED_FLAG Call by reference Type reference (TYPE) ABAP_BOOL 20090813
3 Importing IV_NEW Call by reference Type reference (TYPE) CHAR32 Afffix 20090813
4 Importing IV_SUFFIX Call by reference Type reference (TYPE) CHAR32 Afffix 20090813

Method REPLACE_SUFFIX on class CL_ESH_QP_EN_STEMMER has no exception.

Method REPLACE_SUFFIX_1B Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_TEXT Call by reference Type reference (TYPE) STRING 20090813
2 Exporting EV_MATCHED_FLAG Call by reference Type reference (TYPE) ABAP_BOOL 20090813
3 Exporting EV_REPLACED_FLAG Call by reference Type reference (TYPE) ABAP_BOOL 20090813
4 Importing IV_R1 Call by reference Type reference (TYPE) I 20090813
5 Importing IV_SUFFIX Call by reference Type reference (TYPE) CHAR32 Afffix 20090813

Method REPLACE_SUFFIX_1B on class CL_ESH_QP_EN_STEMMER has no exception.

Method REPLACE_SUFFIX_BY_LENGTH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_TEXT Call by reference Type reference (TYPE) STRING 20090813
2 Exporting EV_REPLACED_FLAG Call by reference Type reference (TYPE) ABAP_BOOL 20090813
3 Importing IV_NEW Call by reference Type reference (TYPE) CHAR32 Afffix 20090813
4 Importing IV_SUFFIX_LEN Call by reference Type reference (TYPE) I 20090813

Method REPLACE_SUFFIX_BY_LENGTH on class CL_ESH_QP_EN_STEMMER has no exception.

Method REPLACE_SUFFIX_IN_REGION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CV_TEXT Call by reference Type reference (TYPE) STRING 20090813
2 Exporting EV_MATCHED_FLAG Call by reference Type reference (TYPE) ABAP_BOOL 20090813
3 Exporting EV_REPLACED_FLAG Call by reference Type reference (TYPE) ABAP_BOOL 20090813
4 Importing IV_NEW Call by reference Type reference (TYPE) CHAR32 Afffix 20090813
5 Importing IV_OFF Call by reference Type reference (TYPE) I 20090813
6 Importing IV_SUFFIX Call by reference Type reference (TYPE) CHAR32 Afffix 20090813
7 Importing IV_SUFFIX_REGEX Call by reference Type reference (TYPE) STRING 20090813

Method REPLACE_SUFFIX_IN_REGION on class CL_ESH_QP_EN_STEMMER has no exception.

Method SET_R1 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_WORD Call by reference Type reference (TYPE) STRING 20090813
2 Returning RV_R1 Value transfer Type reference (TYPE) I 20090813

Method SET_R1 on class CL_ESH_QP_EN_STEMMER has no exception.

Method SET_R2 Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_R1 Call by reference Type reference (TYPE) I 20090813
2 Importing IV_WORD Call by reference Type reference (TYPE) STRING 20090813
3 Returning RV_R2 Value transfer Type reference (TYPE) I 20090813

Method SET_R2 on class CL_ESH_QP_EN_STEMMER has no exception.
History
Last changed by/on SAP  20110908 
SAP Release Created in 730