Skip to content

Allow to modify/extend search algorithm#724

Open
balugaq wants to merge 2 commits into
masterfrom
balugaq/search-extension
Open

Allow to modify/extend search algorithm#724
balugaq wants to merge 2 commits into
masterfrom
balugaq/search-extension

Conversation

@balugaq
Copy link
Copy Markdown
Collaborator

@balugaq balugaq commented May 3, 2026

Closes #723

val latinSearchItemsAndFluidsButton = PageButton(Material.OAK_SIGN, latinSearchItemsAndFluidsPage)

@JvmStatic
val localSearchPages: MutableMap<Locale, PageButton> = mutableMapOf()
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.

A doc on here wouldn't hurt, to explain why there are multiple search pages

Copy link
Copy Markdown
Contributor

@LordIdra LordIdra left a comment

Choose a reason for hiding this comment

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

Just doing a second pass on this, how would you go about actually implementing different search logic for a locale? Surely we'd want to have that functionality as part of Rebar and not an addon which this seems to be tailored towards? Can the functionality not just be coded directly into the search page so that the search page screen behaves differently for some specific locales, instead of having per-locale pages?

@balugaq
Copy link
Copy Markdown
Collaborator Author

balugaq commented May 15, 2026

Just doing a second pass on this, how would you go about actually implementing different search logic for a locale? Surely we'd want to have that functionality as part of Rebar and not an addon which this seems to be tailored towards? Can the functionality not just be coded directly into the search page so that the search page screen behaves differently for some specific locales, instead of having per-locale pages?

I have done something about it. Take Chinese as an example, it's Pinyin lib has a size of 3.0MB, which occupies a considerable amount of space yet achieves a very minor function.

@balugaq balugaq requested a review from LordIdra May 15, 2026 12:11
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.

Allow to modify/extend search algorithm

3 participants