SAP ABAP Class CL_ESH_QP_CH_PARSER (SearchTerms Query Parser)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-EIM-ESH (Application Component) NetWeaver Enterprise Search
⤷
S_ESH_ENG_QUERY_PARSER (Package) Query Parser
⤷
⤷
Meta Relationship - Using
| # | Relationship type | Using | Short Description | Created on |
|---|---|---|---|---|
| 1 | Interface implementation (CLASS c. INTERFACES i_ref) | IF_ESH_TAU_CHK_TEST | Public Tests of a Class | 20100223 |
Properties
| Class | CL_ESH_QP_CH_PARSER | |
| Short Description | SearchTerms Query Parser | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | S_ESH_ENG_QUERY_PARSER | Query Parser |
| Created | 20090917 | SAP |
| Last change | 20130531 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) | |
| 2 | Forward declaration class (CLASS c DEFINITION DEFERRED) | Forward declaration class (CLASS c DEFINITION DEFERRED) |
Interfaces
| # | Interface | Abstract | Final | Description | Created on |
|---|---|---|---|---|---|
| 1 | IF_ESH_TAU_CHK_TEST | Public Tests of a Class | 20100223 |
Friends
| # | Friend | Modeled only | Created on | Description |
|---|---|---|---|---|
| 1 | CL_ESH_QP_TRANSLATOR | 20091005 | Query Translator |
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Public | Type reference (TYPE) | CHAR32 | 'ERROR' | Error start symbol | 20100712 | ||
| 2 | Constant | Public | Type reference (TYPE) | CHAR32 | 'QUERY' | Grammar start symbol | 20090917 | ||
| 3 | Constant | Public | Type reference (TYPE) | CHAR32 | 'BEXPRESSION' | Attribute value start symbol | 20091104 | ||
| 4 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_ESH_QP_CH_LEXER | Text tokenizer | 20090917 | |||
| 5 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_ABAP_REGEX | Regex describing SearchTerms syntax | 20091104 | |||
| 6 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_ABAP_REGEX | Regex describing search scope | 20110809 | |||
| 7 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_ABAP_REGEX | Regex describing search scope | 20110809 | |||
| 8 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_ABAP_REGEX | SearchTerms expression | 20100322 | |||
| 9 | Instance attribute | Private | Object reference (TYPE REF TO) | CL_ESH_QP_TRANSLATOR | Query translator | 20090924 | |||
| 10 | Instance attribute | Private | Type reference (TYPE) | ESH_T_QP_CHART | Query recognition table | 20090917 | |||
| 11 | Static Attribute | Private | Type reference (TYPE) | ESH_T_QP_GRAMMAR_PRODUCTION | Query grammar | 20090917 | |||
| 12 | Instance attribute | Private | Type reference (TYPE) | ESH_T_QP_CH_TOKENS | Tokens | 20090917 | |||
| 13 | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | True if extended SearchTerms syntax is used | 20091105 | |||
| 14 | Instance attribute | Private | Type reference (TYPE) | I | Token count | 20090917 |
Methods
Events
Class CL_ESH_QP_CH_PARSER has no event.
Types
Class CL_ESH_QP_CH_PARSER has no local type.
Method Signatures
Method CHECK_GRAMMAR Signature
Method CHECK_GRAMMAR on class CL_ESH_QP_CH_PARSER has no parameter.
Method CHECK_GRAMMAR on class CL_ESH_QP_CH_PARSER has no exception.
Method CONCATENATE_TERMS Signature
Method CONCATENATE_TERMS on class CL_ESH_QP_CH_PARSER has no parameter.
Method CONCATENATE_TERMS on class CL_ESH_QP_CH_PARSER has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_COUNTRY | Call by reference | Type reference (TYPE) | STRING | 'US' | 20090917 | |||
| 2 | IV_LANGUAGE | Call by reference | Type reference (TYPE) | STRING | 'en' | 20090917 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Lexer Exception | 20090917 | ||
| 2 | Query Parser Exception | 20100823 | ||
| 3 | Query Translation Exception | 20091012 |
Method CREATE_QUERY_ENTRY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_FREESTYLE_QUERY | Call by reference | Type reference (TYPE) | ESH_T_FED_QUERY_ENTRY | Query | 20090923 | |||
| 2 | ET_QUERY | Call by reference | Type reference (TYPE) | ESH_T_FED_QUERY_ENTRY | Query | 20090923 | |||
| 3 | IV_QUERY_STRING | Call by reference | Type reference (TYPE) | STRING | 20090923 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Query Parser Exception | 20100322 |
Method GET_LEXEMS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_LENGTH | Call by reference | Type reference (TYPE) | I | 20090917 | ||||
| 2 | IV_START | Call by reference | Type reference (TYPE) | I | 20090917 | ||||
| 3 | RV_LEXEMS | Value transfer | Type reference (TYPE) | STRING | 20090917 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Query Parser Exception | 20091005 |
Method PARSE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_QUERY_STRING | Call by reference | Type reference (TYPE) | STRING | 20091104 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Lexer Exception | 20091104 | ||
| 2 | Query Parser Exception | 20091104 | ||
| 3 | Query Translation Exception | 20091104 |
Method PARSE_EXTENDED Signature
Method PARSE_EXTENDED on class CL_ESH_QP_CH_PARSER has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Lexer Exception | 20100823 | ||
| 2 | Query Parser Exception | 20100823 | ||
| 3 | Query Translation Exception | 20100823 |
Method PARSE_QUERY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_CORE_QUERIES | Call by reference | Type reference (TYPE) | ESH_T_QP_CORE_QUERY | Core Queries for Extended SearchTerms | 20091029 | |||
| 2 | ET_FREESTYLE_QUERY_ENTRY | Call by reference | Type reference (TYPE) | ESH_T_FED_QUERY_ENTRY | Freestyle Query | 20090917 | |||
| 3 | ET_QUERY_ENTRY | Call by reference | Type reference (TYPE) | ESH_T_FED_QUERY_ENTRY | Query | 20090917 | |||
| 4 | ET_SCOPE | Call by reference | Type reference (TYPE) | ESH_T_FED_SCOPE | Search Scope | 20090917 | |||
| 5 | ET_SEARCH_TIPS | Call by reference | Type reference (TYPE) | STRING_TABLE | Table of Strings | 20090924 | |||
| 6 | ET_SORT | Call by reference | Type reference (TYPE) | ESH_T_FED_SORT | Sort Settings | 20090917 | |||
| 7 | EV_DYM_QUERY | Call by reference | Type reference (TYPE) | STRING | 20091119 | ||||
| 8 | EV_STATUS | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20100322 | ||||
| 9 | EV_TIMEOUT | Call by reference | Type reference (TYPE) | ESH_E_FED_TIMEOUT | Search Timeout (secs) | 20090917 | |||
| 10 | IS_SCOPE | Call by reference | Type reference (TYPE) | ESH_S_FED_SCOPE | Scope set externally | 20090917 | |||
| 11 | IV_QUERY_STRING | Call by reference | Type reference (TYPE) | STRING | 20090917 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Lexer Exception | 20090918 | ||
| 2 | Query Parser Exception | 20090917 | ||
| 3 | Query Translation Exception | 20091012 |
Method PARSE_QUERY_ATTRIBUTE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_QUERY_ENTRY | Call by reference | Type reference (TYPE) | ESH_T_FED_QUERY_ENTRY | 20091104 | ||||
| 2 | ET_SEARCH_TIPS | Call by reference | Type reference (TYPE) | STRING_TABLE | Table of Strings | 20091104 | |||
| 3 | IS_QUERY_ENTRY | Call by reference | Type reference (TYPE) | ESH_S_FED_QUERY_ENTRY | Query Entry | 20091104 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Lexer Exception | 20091104 | ||
| 2 | Query Parser Exception | 20091104 | ||
| 3 | Query Translation Exception | 20091104 |
Method PARSE_QUERY_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_CORE_QUERIES | Call by reference | Type reference (TYPE) | ESH_T_QP_CORE_QUERY | Table of Extended Queries | 20091105 | |||
| 2 | ET_FREESTYLE_QUERY_ENTRY | Call by reference | Type reference (TYPE) | ESH_T_FED_QUERY_ENTRY | Freestyle Query Entry | 20090923 | |||
| 3 | ET_QUERY_ENTRY | Call by reference | Type reference (TYPE) | ESH_T_FED_QUERY_ENTRY | Query Entry | 20090923 | |||
| 4 | ET_SCOPE | Call by reference | Type reference (TYPE) | ESH_T_FED_SCOPE | Search Scope | 20090923 | |||
| 5 | ET_SEARCH_TIPS | Call by reference | Type reference (TYPE) | STRING_TABLE | Table of Strings | 20090924 | |||
| 6 | ET_SORT | Call by reference | Type reference (TYPE) | ESH_T_FED_SORT | Sort Information | 20090923 | |||
| 7 | EV_DYM_QUERY | Call by reference | Type reference (TYPE) | STRING | Did-you-mean query | 20091119 | |||
| 8 | EV_TIMEOUT | Call by reference | Type reference (TYPE) | ESH_E_FED_TIMEOUT | Search Timeout (sec) | 20090923 | |||
| 9 | IS_SCOPE | Call by reference | Type reference (TYPE) | ESH_S_FED_SCOPE | Scope set externally | 20090923 | |||
| 10 | IV_DYM_FLAG | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20091119 | |||
| 11 | IV_EXTENDED_FLAG | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | True if extended SearchTerms Syntax | 20091105 | ||
| 12 | IV_QUERY_STRING | Call by reference | Type reference (TYPE) | STRING | Query String | 20090923 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Lexer Exception | 20090923 | ||
| 2 | Query Parser Exception | 20090923 | ||
| 3 | Query Translation Exception | 20091012 |
Method PARSE_SCOPE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CV_QUERY_STRING | Call by reference | Type reference (TYPE) | STRING | Query String | 20110809 | |||
| 2 | ET_SCOPE | Call by reference | Type reference (TYPE) | ESH_T_FED_SCOPE | Search Scope | 20110809 | |||
| 3 | EV_SUCCESS | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20110809 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Query Parser Exception | 20110809 | ||
| 2 | Query Translation Exception | 20110809 |
Method READ_GRAMMAR Signature
Method READ_GRAMMAR on class CL_ESH_QP_CH_PARSER has no parameter.
Method READ_GRAMMAR on class CL_ESH_QP_CH_PARSER has no exception.
Method SERIALIZE_ATTR_VALUE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_CONTENT_TYPE | Call by reference | Type reference (TYPE) | TREXD_CONTENT_TYPE | Content type | 20110324 | |||
| 2 | IV_VALUE | Call by reference | Type reference (TYPE) | STRING | 20091104 | ||||
| 3 | RV_VALUE_STRING | Value transfer | Type reference (TYPE) | STRING | 20091104 |
Method SERIALIZE_ATTR_VALUE on class CL_ESH_QP_CH_PARSER has no exception.
Method SERIALIZE_QUERY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_REQUEST_DATA | Call by reference | Object reference (TYPE REF TO) | CL_ESH_FED_REQUEST_DATA | Search Request Data | 20091104 | |||
| 2 | IV_WITH_SCOPE_FLAG | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20091104 | |||
| 3 | RV_ST_QUERY | Value transfer | Type reference (TYPE) | STRING | Serialized SearchTerms Query | 20091104 |
Method SERIALIZE_QUERY on class CL_ESH_QP_CH_PARSER has no exception.
Method TRANSLATE_QUERY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_CORE_QUERIES | Call by reference | Type reference (TYPE) | ESH_T_QP_CORE_QUERY | Table of Strings | 20091029 | |||
| 2 | ET_FREESTYLE_QUERY_ENTRY | Call by reference | Type reference (TYPE) | ESH_T_FED_QUERY_ENTRY | Freestyle Query | 20091028 | |||
| 3 | ET_QUERY_ENTRY | Call by reference | Type reference (TYPE) | ESH_T_FED_QUERY_ENTRY | Query | 20091028 | |||
| 4 | ET_SCOPE | Call by reference | Type reference (TYPE) | ESH_T_FED_SCOPE | Search Scope | 20091028 | |||
| 5 | ET_SEARCH_TIPS | Call by reference | Type reference (TYPE) | STRING_TABLE | Table of Strings | 20091028 | |||
| 6 | ET_SORT | Call by reference | Type reference (TYPE) | ESH_T_FED_SORT | Sort Settings | 20091028 | |||
| 7 | EV_DYM_QUERY | Call by reference | Type reference (TYPE) | STRING | Did-you-mean query | 20091119 | |||
| 8 | EV_STATUS | Call by reference | Type reference (TYPE) | ABAP_BOOL | True if translation of core query successful | 20100318 | |||
| 9 | EV_TIMEOUT | Call by reference | Type reference (TYPE) | ESH_E_FED_TIMEOUT | Search Timeout (secs) | 20091028 | |||
| 10 | IS_SCOPE | Call by reference | Type reference (TYPE) | ESH_S_FED_SCOPE | Scope set externally | 20091028 | |||
| 11 | IV_DYM_FLAG | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | 20091119 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Lexer Exception | 20091028 | ||
| 2 | Query Parser Exception | 20091028 | ||
| 3 | Query Translation Exception | 20091028 |
Method TRANSLATE_QUERY_ATTRIBUTE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_QUERY_ENTRY | Call by reference | Type reference (TYPE) | ESH_T_FED_QUERY_ENTRY | Query | 20091104 | |||
| 2 | ET_SEARCH_TIPS | Call by reference | Type reference (TYPE) | STRING_TABLE | Table of Strings | 20091104 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Lexer Exception | 20091104 | ||
| 2 | Query Parser Exception | 20091104 | ||
| 3 | Query Translation Exception | 20091104 |
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 730 |