Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use textCleanFunction without built-in cleaning? #176

Closed
jtlapp opened this issue Jun 18, 2022 · 1 comment
Closed

How to use textCleanFunction without built-in cleaning? #176

jtlapp opened this issue Jun 18, 2022 · 1 comment

Comments

@jtlapp
Copy link

jtlapp commented Jun 18, 2022

I am only able to do lookups containing capital letters when cleanUserText={true}, but I also need to be able to look up text containing punctuation, so I can't use this feature. (My searches are actually case-insensitive.)

I thought to override the built-in clean-up by providing my own textCleanFunction . But that function is only called when cleanUserText={true}, which results in the built-in cleaning also being applied.

How do I override built-in cleaning so that the user can search with capital letters? I'm happy to lowercase the text if that's what this package prefers.

Also, lowercaseKeywords isn't permitting capital letters, regardless of its value.

@jtlapp
Copy link
Author

jtlapp commented Jun 28, 2022

After much effort, I finally figured out to set localFiltering to false.

@jtlapp jtlapp closed this as completed Jun 28, 2022
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

No branches or pull requests

1 participant