Skip to content

SearchableListBox default filter hides long items and short queries #270

Closed

Description

@Felix-Mallinder

Description:

The default SearchableListBox filter hides matching items. default_scorer uses only the BHoM Search_Engine WeightedRatio fuzzy match, which scales scores down when the item is much longer than the query, so long names and short queries fall below min_score (75).

How to replicate:

Filter a list containing GBR_London.Gatwick_2050_ASHRAE_RCP8.5.epw:

  • .epw hides it (shorter .epw names still show)
  • a, lo, 205 match nothing at all

Expected behaviour:

An item matches when it contains every word typed (case and punctuation ignored), listed first. Fuzzy matching is kept as a fallback for typos on queries of 4+ characters. The fuzzy-only scorer stays available as fuzzy_scorer.

Test file(s):

Python_Engine/Python/tests/test_bhom_tkinter_ui.py::test_searchable_list_box_fuzzy_matching

Activity

  1. added
    type:bug
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bug

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions