Skip to content

nodejs: document disabling of fuzzy search#1913

Merged
renejeglinsky merged 1 commit into
mainfrom
disable-fuzzy-search
Jun 11, 2025
Merged

nodejs: document disabling of fuzzy search#1913
renejeglinsky merged 1 commit into
mainfrom
disable-fuzzy-search

Conversation

@johannes-vogel
Copy link
Copy Markdown
Contributor

No description provided.

- Node.js:<Config keyOnly>cds.hana.fuzzy = 0.7</Config>
- Node.js:<Config keyOnly>cds.hana.fuzzy = 0.7</Config><sup>(1)</sup>

<sup>(1)</sup> If set to `false`, fuzzy search is disabled and falls back to a case insensitive substring search.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the difference between 0.0 and false?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems as if false isn't possible for Java, correct?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems as if false isn't possible for Java, correct?

Java has mentioned an additional config above. only in hex mode, fuzzy search is possible. Node always uses hex mode.

Where is the difference between 0.0 and false?

0.0 will still use the hana fuzzy search (even though I don't know if it makes sense). we explicitly check for value false to not use hana fuzzy search but a self implemented case insensitive substring search using the like operator.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the explanation!

@renejeglinsky renejeglinsky added this pull request to the merge queue Jun 11, 2025
Merged via the queue into main with commit d409d42 Jun 11, 2025
4 checks passed
@renejeglinsky renejeglinsky deleted the disable-fuzzy-search branch June 11, 2025 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants