Hierarchy

⤷

⤷

IMG Activity
ID | RCF_SEARCH_RANKING | BAdI: Weighting of Search Results Hits |
Transaction Code | S_PES_12000004 | (empty) |
Created on | 20060530 | |
Customizing Attributes | RCF_SEARCH_RANKING | BAdI: Weighting of Search Results Hits |
Customizing Activity | RCF_SEARCH_RANKING | BAdI: Weighting of Search Results Hits |
Document
Document Class | SIMG | Hypertext: Object Class - Class to which a document belongs. |
Document Name | RCF_SEARCH_RANKING |
Use
The Business Add-In (BAdI) HRRCF_SEARCH_RANKING is used to add together the hits of the hit lists from two searches, thus enabling a common weighting of the hits.
The BAdI provides the following methods for an implementation:
COMPUTE_RANKING (Group Together Hits from Two Searches with OR or AND)
The system uses this method to group together the hits of the hit lists of two different searches into one hit list.
In the standard implementation HRRCF00_SEARCH_RANKING, this occurs depending on the operator used (and/or) between the search attributes. The system behavior with regard to the relationships between the search attributes results from the settings that are stored for the Ranking in the IMG activity Set Up Search Applications. For more information, see the documentation for the IMG activity in the Ranking section.
The system also takes into account the weighting of the hits.
Parameters of the Methods
Parameters Type Reference Type Default Value Description
P_HITLIST1 Importing RCF_T_HITLIST_WITH_RANKV First Hit List
P_HITLIST2 Importing RCF_T_HITLIST_WITH_RANKV Second Hit List
P_WEIGHT1 Importing NUMC10 1 Weighting for Hits of First Hit List
P_WEIGHT2 Importing NUMC10 1 Weighting for Hits of Second Hit List
P_INTERSECT Importing BOOLE_D 'X' = Intersection of Hit Lists; ' ' = Union of Hit Lists
P_MERGEDLIST Exporting RCF_T_HITLIST_WITH_RANKV Hit List with Weighting as Result of Combining 2 Hit Lists
COMPUTE_RANKING_NON_TREX_HITS (Calculate Weighting of Hits from Non-TREX Search)
You use this method to calculate a weighting for hits that were determined using a database search. In addition to the search using Search and Classification (TREX), it is also possible to search using function modules. Hits found in this way do not have a weighting, however. Consequently, these hits would have a weighting of 0% when combined with the hit list from the TREX search.
In the standard implementation HRRCF00_SEARCH_RANKING, the method calculates a weighting for these hits according to the following equation: Weighting of hit = 100% divided by the number of selected search criteria.
Parameters of the Methods
Parameters Type Reference Type Default Value Description
P_HITLIST Importing RCF_T_HITLIST_WITH_RANKV Hit List from Non-TREX Search
P_WEIGHT Importing NUMC10 1 Weighting
P_NUMBER_OF_CRITERIA Importing I Number of Selected Search Criteria/Search Template Elements
P_HITLIST_WITH_RANKV Exporting RCF_T_HITLIST_WITH_RANKV Hit List from Non-TREX Search with Weighting
COMPUTE_RANKING_FOR_MAND_LIST (Compare Hits from Searches with or without Mandatory Criteria)
The system uses this method to group together the hits from a search with mandatory criteria and the hits from a search without mandatory criteria.
In the standard implementation HRRCF00_SEARCH_RANKING, the result hit list comes from the hit list of the search with mandatory criteria, whereby the hits that also come from the search without mandatory criteria receive a new ranking value. This is calculated as follows:
The product of the ranking value of the hit from the search with mandatory criteria and the weighting for the first hit list is added to the product of the ranking value of the hit from the search without mandatory criteria and the weighting for the second hit list. This sum is divided by the sum of the weighting for the first hit list and the weighting for the second hit list.
Parameters of the Method
Parameter Type Reference Type Default Value Description
P_HITLIST_MAND Importing RCF_T_HITLIST_WITH_RANKV First Hit List from Search with Mandatory Criteria
P_HITLIST2 Importing RCF_T_HITLIST_WITH_RANKV Second Hit List from Search Without Mandatory Criteria
P_WEIGHT1 Importing NUMC10 1 Weighting for First Hit List
P_WEIGHT2 Importing NUMC10 1 Weighting for Second Hit List
P_MERGEDLIST Exporting RCF_T_HITLIST_WITH_RANKV New Hit List as Result of Comparing Both Lists
Requirements
Standard settings
In the standard system, the BAdI implementation HRRCF00_SEARCH_RANKING is activated. The default code is executed automatically.
Activities
Create your own implementation if necessary.
Example
Business Attributes
ASAP Roadmap ID | 255 | Create Interfaces |
Mandatory / Optional | 2 | Optional activity |
Critical / Non-Critical | 2 | Non-critical |
Country-Dependency | A | Valid for all countries |
Assigned Application Components
Documentation Object Class | Documentation Object Name | Current line number | Application Component | Application Component Name |
---|---|---|---|---|
SIMG | RCF_SEARCH_RANKING | 0 | ALN0000022 | E-Recruiting |
Maintenance Objects
Maintenance object type | E | Business Add-In - Definition |
History
Last changed by/on | SAP | 20060530 |
SAP Release Created in | 600 |