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

[3 days SPIKE] Increase number of characters in the search field #3282

Closed
MagdalenaLarge opened this issue Aug 2, 2024 · 2 comments
Closed
Assignees
Labels
Community backlog An issue raised on the community backlog Enhancement Change of existing feature Spike Requires investigation outside BAU work

Comments

@MagdalenaLarge
Copy link

Goal
In our Community backlog, user raised a concern about the number of characters in the list which can be searched.
We need to investigate if it is possible to increase this number.

Background

Community backlog comment link

Context
Currently we only use 30 characters string. We will have to investigate if it is possible to increase it.

Consideration
We are using Fuse library, so we need to check if it is feasible to do the change.

Output
TBC

@MagdalenaLarge MagdalenaLarge added Refine To be refined Enhancement Change of existing feature Community backlog An issue raised on the community backlog Spike Requires investigation outside BAU work labels Aug 2, 2024
@precious-onyenaucheya-ons precious-onyenaucheya-ons changed the title [SPIKE] Increase number of characters in the search field [3 days SPIKE] Increase number of characters in the search field Aug 6, 2024
@precious-onyenaucheya-ons
Copy link
Contributor

precious-onyenaucheya-ons commented Aug 15, 2024

We currently use the Fuse.js library to support the search functionality within our Design System. As part of this configuration, we have set a search threshold of 20%, which limits the search scope to the first 20 characters of each entry. While increasing this threshold would enable a broader search across more characters, it could also lead to an increase in irrelevant results.

Suggestion:
To address this, we could introduce a parameter within the autosuggest feature that enables extended search. If the user opts for extended search, we could raise the threshold to 40%, allowing the search to cover the first 40 characters(Documentation would need to be updated to explain the impact of this). However, there is a limitation to this approach, as it is unclear how many characters users may need to search for in different cases.

@precious-onyenaucheya-ons precious-onyenaucheya-ons added Upcoming To make the issue appear in 'working on later' on the Service Manual In Development To make the issue appear in 'working on now' on the Service Manual and removed Upcoming To make the issue appear in 'working on later' on the Service Manual labels Aug 16, 2024
@precious-onyenaucheya-ons precious-onyenaucheya-ons added In Development To make the issue appear in 'working on now' on the Service Manual and removed In Development To make the issue appear in 'working on now' on the Service Manual labels Sep 5, 2024
@MagdalenaLarge
Copy link
Author

As per the discussion with the IDS team we will enable users to control number of characters in the Autosuggest component. Parameter can be set up between 0-1. New user story has been created: #3347.

As the next step we will also look into new version of Autosuggest which would use substring match rather than fuzzy search. #214

@MagdalenaLarge MagdalenaLarge removed Refine To be refined In Development To make the issue appear in 'working on now' on the Service Manual labels Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community backlog An issue raised on the community backlog Enhancement Change of existing feature Spike Requires investigation outside BAU work
Projects
None yet
Development

No branches or pull requests

2 participants