Spellcheck issue for some language

Created on 16 September 2019, almost 6 years ago
Updated 15 August 2025, 14 days ago

Looks like for some language, spellcheck breaks the query -

null:java.lang.IllegalArgumentException: All checkers need to use the same Analyzer.
at org.apache.solr.spelling.ConjunctionSolrSpellChecker.addChecker(ConjunctionSolrSpellChecker.java:78)
at org.apache.solr.handler.component.SpellCheckComponent.getSpellChecker(SpellCheckComponent.java:603)
at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:126)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:286)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:199)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:2578)

Tested with language- Thai, Japanese, Turkish

✨ Feature request
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dksdev01 New York

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡ΏNew Zealand fraserthompson Dunedin, New Zealand

    This is still an issue btw. On our multi-lingual site (English, Chinese, Portuguese, Japanese) it works fine for other languages, but completely breaks search for Chinese (as in, no results are returned).

    Can't comment on any of the above solutions or what a proper fix might look like, but if anyone's looking for a quick fix without too much fiddling setting the `spellcheck_field_type` from `search_api_solr.solr_field_type.text_zh-hans_7_0_0.yml` to null then importing and deploying config fixed it for us. It means spellchecking doesn't happen on the Chinese site, but at least search works.

Production build 0.71.5 2024