SAP ABAP Data Element SRTVCBSRCH (Text Retrieval: Callback for Query Expansion)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-SRV-SEN (Application Component) ABAP Search Engine for ERP Solution Database
     SRTV (Package) Natural Language Text Retrieval: Core functions
Basic Data
Data Element SRTVCBSRCH
Short Description Text Retrieval: Callback for Query Expansion  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type FUNCNAME    
Data Type CHAR   Character String 
Length 30    
Decimal Places 0    
Output Length 30    
Value Table TFDIR    
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID LIB  
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short 10 Query Exp. 
Medium 15 Query Expansion 
Long 20 Query Expansion CB 
Heading 30 Query Expansion Callback 
Documentation

Definition

Name of a callback which can be used during the document retrieval process to improve the query process by deleting associations between query and document words which make no sense.

Use

The search engine passes to the calling application a list of words through this callback. These words are all contained in the documents of the index and are identified by the search engine as being related with the query.

The interface of the callback function is described in the following parameters:

  • CHANGING
    • REFERENCE(CT_QUERY_MAP) TYPE SRTV1_LEX_ENTRY_RELEVANCE_MAP

The lines of the table contain the following information:

  • ENTRY (field name)

    Word (descriptor) contained in at least one document.

  • SPECTYPE (field name)

    Type of descriptor

  • RELEVANCE (field name)

    Measure of the strength of association between the document word (ENTRY) and the query word (QUERY_WORD).

  • SEARCHTYPE (field name)

    Search method which identified the association between the two words. For each of the five possible values, a constant is defined in type pool SRTV1. The names of the constants and the search methods are:

    • SRTV1_EXACT
    • ENTRY is identical to QUERY_ENTRY and is not a descriptor.
    • SRTV1_ATTR
    • ENTRY is identical to QUERY_ENTRY and is a descriptor.
    • SRTV1_SIMILAR
    • Word stem search. Searches for words that have the same stem, but different grammatical endings.
    • SRTV1_ASSOC
    • Word within word search. Looks for QUERY_ENTRY in document words which are longer compound words.
    • SRTV1_PHASH
    • Phonetic search. Searches for words which sound alike or are pronounced similarly.
  • QUERY_WORD (field name)

    Query word

Dependencies

The types used on the interfaces of the callback functions are defined in the ABAP Dictionary or in type pools SRTV and SRTV1.

The score explanation callback is related to this callback.

Examples

History
Last changed by/on SAP  20020827 
SAP Release Created in