https://bugs.kde.org/show_bug.cgi?id=440246

Alvin Wong <al...@alvinhc.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|REPORTED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/docu
                   |                            |mentation/docs-krita-org/co
                   |                            |mmit/f67b09964d2ba0547bdfa5
                   |                            |e73fa11ddcb0c98fe6

--- Comment #1 from Alvin Wong <al...@alvinhc.com> ---
Git commit f67b09964d2ba0547bdfa5e73fa11ddcb0c98fe6 by Alvin Wong.
Committed on 25/08/2021 at 14:10.
Pushed by alvinwong into branch 'master'.

Try to split search term into smaller parts for zh and ja

When sphinx generates the search index, terms gets split into the
smallest logical part, for example "笔刷预设介绍" will be split into
three individual terms - "笔刷", "预设" and "介绍". The search page
JavaScript does not know how to do segmentation (wouldn't be feasible
anyway due to the need of a dictionary). Therefore here we add an
extra logic to attempt to further split the search terms according to
available terms in the search index to make the search function more
useful for Chinese and Japanese languages.

This logic requires that every part of the search term to be an existing
term in the index, like "笔刷预设介绍". If the search term is instead
"笔刷预设道路" and that "道路" does not exist in the index, this logic
will not apply the split and the search will yield no results.

M  +52   -0    theme/static/searchtools.js_t

https://invent.kde.org/documentation/docs-krita-org/commit/f67b09964d2ba0547bdfa5e73fa11ddcb0c98fe6

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to