Ansicht
Dokumentation

SRTV_CORPUS_FILTER -

SRTV_CORPUS_FILTER -

Addresses (Business Address Services)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module can be used to determine which set of documents in an index obey a certain rule. The index has to be specified in the parameter ID_CORPUSID while the language can be specified in ID_LANGU.

The SAP client (MANDT) can also be specified because, when the search engine is customized, this client can be chosen to create client-specific indexes.

The list of documents fulfilling the filter condition is exported in ET_EDOCIDS.

The rule that defines the filter on the index specifies which descriptors or words have to be contained by the documents passing the filter. The rule is specified by the changing parameter IT_WORD_LIST which is a table containing the following fields:

  • ENTRY
Contains the descriptor or word.
  • TERMTYPE
Non-initial if ENTRY is a descriptor; blank for words.
  • X_OR
Specifies the logical operator connecting the lines of table IT_WORD_LIST (if it contains more than one line). X_OR can have the following values:
  • Initial

The logical operator is an AND.
  • X

The logical operator is an OR.
X_OR is of course initial for the last line of the table.

The filter works as follows:

Table IT_WORD_LIST contains a number of lists of descriptors or words. In each list, the descriptors or words are "connected" by the OR logical operators (the parameter X_OR has the value X). The last member of a list is signalized by an AND operator (that is, by leaving X_OR initial). First, each list is evaluated. The filter rule is then enforced by searching for the documents containing at least one word or descriptor from each list (that is, the lists are connected by AND logical operators).

Example

Consider the following content of table IT_WORD_LIST:

ENTRY TERMTYPE X_OR
A1 1 X
A2 1 X
A3 1
test  
B1 1 X
B2 1 X
B3 1 X
B4 1
C1 1

The function module is going to return the list of documents which fulfil ALL of the following conditions:

  • The document contains at least one of the following three descriptors: A1, A2, A3 (and)
  • The document contains the word test (and)
  • The document contains at least one of the following four descriptors: B1, B2, B3, B4 (and)
  • The document contains the descriptor C1.

The exception NO_DOCUMENTS_MATCH is raised if no document fulfils the filter conditions.

Notes

Further information





Parameters

ET_EDOCIDS
ET_RESULT
ID_CORPUSID
ID_LANGU
IT_DOCUMENT_SET
IT_WORD_LIST
MANDT

Exceptions

COMPILATION_CANCELLED
LEXICON_DOES_NOT_EXIST
NO_DOCUMENTS_MATCH
READ_ERROR
WRONG_CORPUS_ID
WRONG_SPECTERM_OR_WORD

Function Group

SRTV1

Addresses (Business Address Services)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 4743 Date: 20240523 Time: 094836     sap01-206 ( 57 ms )