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: 001
Message text: At least one element has to be set as 'defaultSearchElement'
The view is defined as searchable by annotation @Search.searchable, but
none of its elements is annotated as relevant for a free-style search.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
If you want the view to be searchable, add annotation
@Search.defaultSearchElement for a few elements that are to be
considered in a free-style search.
If you do not want the view to be searchable, remove all annotations of
domain @Search.
Error message extract from SAP system. Copyright SAP SE.
ESH_ENG_CDSVAL_SRCH001
- At least one element has to be set as 'defaultSearchElement' ?The SAP error message ESH_ENG_CDSVAL_SRCH001 indicates that in the context of the SAP Enterprise Search (SAP ESH), at least one element must be designated as the 'defaultSearchElement' in the configuration of the search model. This is a common issue when setting up or modifying search models in SAP ESH.
Cause:
The error occurs when:
To resolve this error, you need to ensure that at least one element in your search model is set as the 'defaultSearchElement'. Here are the steps to do this:
Access the Search Model Configuration:
EHS_SEARCH
or through the SAP Fiori Launchpad).Edit the Search Model:
Set Default Search Element:
Save the Configuration:
Test the Search Model:
By following these steps, you should be able to resolve the error and successfully configure your search model in SAP ESH.
Get instant SAP help. Start your 7-day free trial now.
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_ES066
DDIC-type of element &1 does not fit to ConfigurationSet IDSEARCH
What causes this issue? The configuration set IDSEARCH - annotated via @EnterpriseSearch.configurationSet at element &V1& - can be used only ...
ESH_ENG_CDSVAL_SRCH002
'ranking' should be set somewhere as 'HIGH'
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...
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...
Click on this link to search all SAP messages.