{"id":66521,"library":"lucene-analyzers-smartcn","title":"Lucene Smart Chinese Analyzer","description":"Provides Smart Chinese Analysis for Apache Lucene, enabling tokenization and indexing of Chinese text.","status":"active","version":"8.11.4","language":"java","source_language":null,"source_url":"https://gitbox.apache.org/repos/asf?p=lucene-solr.git;f=lucene/analysis/smartcn","tags":["lucene","chinese","analysis","tokenizer","search"],"install":[{"cmd":"<dependency>\n  <groupId>org.apache.lucene</groupId>\n  <artifactId>lucene-analyzers-smartcn</artifactId>\n  <version>8.11.4</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'org.apache.lucene:lucene-analyzers-smartcn:8.11.4'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"SmartChineseAnalyzer","correct":"org.apache.lucene.analysis.cn.smart.SmartChineseAnalyzer"}],"quickstart":{"code":"import org.apache.lucene.analysis.cn.smart.SmartChineseAnalyzer;\nimport org.apache.lucene.analysis.TokenStream;\nimport org.apache.lucene.analysis.tokenattributes.CharTermAttribute;\nimport java.io.StringReader;\n\npublic class Quickstart {\n    public static void main(String[] args) throws Exception {\n        SmartChineseAnalyzer analyzer = new SmartChineseAnalyzer();\n        TokenStream ts = analyzer.tokenStream(\"text\", new StringReader(\"我爱编程\"));\n        CharTermAttribute termAtt = ts.addAttribute(CharTermAttribute.class);\n        ts.reset();\n        while (ts.incrementToken()) {\n            System.out.println(termAtt.toString());\n        }\n        ts.end();\n        ts.close();\n        analyzer.close();\n    }\n}","lang":"java","description":"Tokenizes Chinese text using SmartChineseAnalyzer."},"warnings":[],"env_vars":null,"search_vec":"'analysi':8,21 'analyz':4 'apach':10 'chines':3,7,17,20 'enabl':12 'index':15 'lucen':1,11,19 'provid':5 'search':23 'smart':2,6 'text':18 'token':13,22","created_at":"2026-06-17T17:25:01.286193+00:00","updated_at":"2026-06-17T17:25:01.286193+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://lucene.apache.org","github":null,"docs":"https://appdoc.app/artifact/org.apache.lucene/lucene-analyzers-smartcn/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}