SAP ABAP Data Element SRTVCBSPTS (Text Retrieval: Callback for Reading Descriptors)
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 SRTVCBSPTS
Short Description Text Retrieval: Callback for Reading Descriptors  
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 Desc. Read 
Medium 15 Descriptor Read 
Long 20 Descriptor Read CB 
Heading 30 Descriptor Read Callback 
Documentation

Definition

Name of the callback used to read any descriptors when the index is compiled.

Use

The application calling the search engine's compilation function (function module SRTV_CALL_CORPUS_COMPILER) passes a list of all the descriptors through this callback. The descriptors play an important role during retrieval if they are present in the query text. They can be technical descriptions, product names, or special attributes characterizing a document or an object referred to in the document. The interface of the callback function is described in the following parameters:

  • IMPORT
    • VALUE(ID_CORPUSID) TYPE SRTVCORPID
  • CHANGING
    • REFERENCE(CT_SPECTERMS) TYPE SRTV_SPECTERM_TABLE
  • EXCEPTIONS
    • NO_DOCUMENTS_FOUND

The search engine returns the name of the index. The list of descriptors is passed in table CT_SPECTERMS. The fields of its line type (SRTV_SPECTERM) have the following meaning:

  • ENTRY (field name)

    Descriptor

  • SPECTYPE (field name)

    The application can specify several values for this field, thus classifying the descriptors. This field has to contain an entry, usually the value 1. Other values require modifications to the search engine.

  • X_OR (field name)

    This field should be left initial as it is not relevant in this context.

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

Dependencies

Examples

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