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

Reduce minimum search term length from 3 to 2 characters in SettingsBuilder #11721

Open
sokojh opened this issue Oct 28, 2024 · 0 comments
Open

Comments

@sokojh
Copy link

sokojh commented Oct 28, 2024

Current Behavior

Currently, the elasticsearch search filter in SettingsBuilder.java enforces a minimum length of 3 characters for search terms.

ImmutableMap.<String, Object>builder().put(TYPE, "length").put("min", "3").build());

Proposed Change

Change the minimum length from 3 to 2 characters:

 ImmutableMap.<String, Object>builder().put(TYPE, "length").put("min", "2").build()); 

Motivation

Currently, the minimum search length of 3 characters creates significant limitations for multilingual search capabilities, especially for:

  1. Non-English Language Support
  • Many Asian languages (Korean, Chinese, Japanese) commonly use 2-character meaningful words
  • Important search terms are being filtered out due to the 3-character minimum requirement
  • This affects user experience for non-English speaking users
  1. Common Use Cases Affected
  • Two-letter abbreviations (e.g., AI, ML, BI)
  • Short company names or product codes
  • ISO country codes (US, UK, KR)
  • Common industry acronyms
  1. User Experience Impact
  • Users are forced to type additional characters to perform searches
  • Relevant search results are being missed due to length restrictions
  • Creates friction in multilingual environments

Expected Impact

Positive Changes

  • Enhanced multilingual search support
  • Better accommodation of various writing systems
  • Improved search accuracy for short but meaningful terms
  • More intuitive search experience for international users
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