Do you have any question about this error?
Message type: E = Error
Message class: ESH_ENG_CDSVAL_SRCH - ES-CDS/ABAP: Validation of domain @Search
Message number: 002
Message text: 'ranking' should be set somewhere as 'HIGH'
None of the view's elements is defined as relevant for ranking via
attribute weights, or none of the elements is defined as being of high
relevancy.
In order to yield a reasonable search result, the attribute weights have
to be defined, and at least one of them has to be set as 'high'.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Define the attribute ranking weight annotation @Search.ranking for the
elements relevant for free-style search (annotation
@Search.defaultSearchElement), with at least one of them being set as
#HIGH.
Error message extract from SAP system. Copyright SAP SE.
ESH_ENG_CDSVAL_SRCH002
- 'ranking' should be set somewhere as 'HIGH' ?The SAP error message ESH_ENG_CDSVAL_SRCH002, which indicates that 'ranking' should be set somewhere as 'HIGH', typically arises in the context of SAP's Enterprise Search or the SAP HANA database when dealing with search queries and ranking configurations.
Cause:
This error usually occurs when a search query is executed, and the ranking parameter is not set correctly. The ranking parameter is essential for determining the relevance of search results. If the ranking is not set to 'HIGH', the system may not be able to process the search query effectively, leading to this error.
Solution:
To resolve this error, you can take the following steps:
Check Search Configuration:
- Go to the configuration settings for your search application (e.g., SAP Enterprise Search).
- Ensure that the ranking settings are correctly configured. Look for options related to ranking and set them to 'HIGH' where necessary.
Adjust CDS View:
- If you are using Core Data Services (CDS) views, check the definition of the CDS view being used in the search.
- Ensure that the ranking is defined correctly in the CDS view. You may need to modify the view to include a ranking parameter.
Review Search Queries:
- Review the search queries being executed. Ensure that they are correctly formatted and that any ranking parameters are included as required.
Check Authorization:
- Ensure that the user executing the search has the necessary authorizations to access the search functionality and the underlying data.
Consult Documentation:
- Refer to the SAP documentation for Enterprise Search or the specific module you are working with. There may be additional configuration steps or best practices outlined.
SAP Notes and Support:
- Check the SAP Support Portal for any relevant SAP Notes that may address this specific error. There may be patches or updates that resolve known issues.
Testing:
- After making changes, test the search functionality to ensure that the error no longer occurs and that the search results are returned as expected.
Related Information:
If the issue persists after following these steps, consider reaching out to your SAP support team or consulting with an SAP expert for further assistance.
Get instant SAP help. Start your 7-day free trial now.
ESH_ENG_CDSVAL_SRCH001
At least one element has to be set as 'defaultSearchElement'
What causes this issue? The view is defined as searchable by annotation @Search.searchable, but none of its elements is annotated as relevant for a f...
ESH_ENG_CDSVAL_SRCH000
CDS-domain @Search
What causes this issue? CDS: Checks on annotations of domain @SearchSystem Response The system issues an error message and will not allow you to con...
ESH_ENG_CDSVAL_SRCH003
'fuzzinessThreshold' less than &2 is questionable (&1)
What causes this issue? For a fuzzy search, the threshold has to be defined. A threshold of 1 equals an exact search, a threshold of 0 finds simply e...
ESH_ENG_CDSVAL_SRCH004
'termMappingListID' requires 'termMappingDictionary' (&1)
What causes this issue? Annotation @Search.termMappingListID is used, although there is no annotation @Search.termMappingDictionary.System Response ...
Click on this link to search all SAP messages.