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


SAP Error Message - Details

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

    1. 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.
    2. 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.
    3. Review Search Queries:

      • Review the search queries being executed. Ensure that they are correctly formatted and that any ranking parameters are included as required.
    4. Check Authorization:

      • Ensure that the user executing the search has the necessary authorizations to access the search functionality and the underlying data.
    5. 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.
    6. 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.
    7. 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:

    • SAP Enterprise Search: A tool that allows users to search across various SAP applications and data sources.
    • Core Data Services (CDS): A framework for defining and consuming semantically rich data models in SAP HANA.
    • Ranking in Search: Refers to the process of determining the relevance of search results based on various criteria, which can include factors like keyword matches, data quality, and user preferences.

    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.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker