on 2024 Jan 11 4:31 PM
In a UI5 app some filters are set like
new oFilter("lastName", oFilterOperator.Contains, oParams.name),
new oFilter("firstName", oFilterOperator.Contains, oParams.name),
new oFilter("companyName", oFilterOperator.Contains, oParams.name)
In the cds entity fuzzy search is enabled on database level like
@sql.append: 'FUZZY SEARCH INDEX ON'
firstName : String default '';
@sql.append: 'FUZZY SEARCH INDEX ON'
lastName : String default '';
@sql.append: 'FUZZY SEARCH INDEX ON'
companyName : String default '';
SELECT * FROM Dummy where CONTAINS(lastName, 'Companie', FUZZY (0.8))
Request clarification before answering.
Hello Sander,
In case of SAP CAPM, the fuzzy search has to be implemented at the service level by altering the req object.
Do not see an option to send the filter parameter for fuzzy search from UI5 and this has been achieved by implementing the custom logic at the service layer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
30 | |
10 | |
8 | |
8 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.