How To Fix ESH_ENG_CDSVAL_SRCH002 - 'ranking' should be set somewhere as 'HIGH'


ESH_ENG_CDSVAL_SRCH002 - Overview

  • 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'

  • Show details Hide details
  • What causes this issue?

    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'.

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    How to fix this error?

    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.

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message 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

    Already have an account? Login here!




Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author