cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CAP Search by Integer field

alikaseikazhura
Associate
Associate
0 Likes
447

Hi everybody

Could somebody clarify how to set up a search on Integer fields

On this page we could see that all string fields are searchable:

https://cap.cloud.sap/docs/guides/generic#search-capabilities

But if we have an entity like

entity Books{

keyID:UUID;

title:String;

quantity: Integer

}

Is it possible to use a standard search by the "quantity" field?

Maybe somebody has already faced this issue

Accepted Solutions (0)

Answers (1)

Answers (1)

OlenaT
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Aliaksei,

With the next release it should be possible to use search with Integer types. By default, only String fields will be searchable, but you can use a search annotation to add additional fields. Please check the documentation, it will be updated soon.

Best regards,

Olena