'searchable' must be annotated at views
Message type: E = Error
Message class: ESH_ENG_CDSVAL_SRCH - ES-CDS/ABAP: Validation of domain @Search
Message number: 005
Message text: 'searchable' must be annotated at views
What causes this issue?
@Search.searchable has to be annotated at the view itself.
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?
If you want the view to be searchable, move the annotation to the
view-level.
If you do not want the view to be searchable, remove all
@Search-annotations.
Procedure for System Administrators
Error message extract from SAP system. Copyright SAP SE.
Related Error Messages
ESH_ENG_CDSVAL_SRCH004 'termMappingListID' requires 'termMappingDictionary' (&1)
ESH_ENG_CDSVAL_SRCH003 'fuzzinessThreshold' less than &2 is questionable (&1)
ESH_ENG_CDSVAL_SRCH006 'defaultSearchElement' must be annotated at elements
ESH_ENG_CDSVAL_SRCH007 'ranking' must be annotated at elements