http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12478 --- Comment #103 from Peter Zhao <peterzhaonj@163.com> --- (In reply to Peter Zhao from comment #98)
ES Opac cannot support Chinese language? I try to search Chinese word in http://elasticsearch.koha.catalystdemo.net.nz/ and my ES, they also show "Software error".
Software error:
Can't escape \x{57FA}, try uri_escape_utf8() instead at /opt/kohaclones/elasticsearch/Koha/SearchEngine/Elasticsearch/QueryBuilder. pm line 217.
For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error.
Software error:
Can't escape \x{57FA}, try uri_escape_utf8() instead at /home/koha/kohaes/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm line 217.
For help, please send mail to the webmaster (webmaster@koha), giving this error message and the time and date of the error.
After I changed "uri_escape" to "uri_escape_utf8", ES can index and Opac can search Chinese in MARC21 structure. But it does not work in UNIMARC structure. It shows messy code. koha@koha:~$ curl -XGET 'http://localhost:9200/koha_biblios/_search?pretty=1' { "took" : 132, "timed_out" : false, "_shards" : { "total" : 5, "successful" : 5, "failed" : 0 }, "hits" : { "total" : 2, "max_score" : 1.0, "hits" : [ { "_index" : "koha_biblios", "_type" : "data", "_id" : "1", "_score" : 1.0, "_source":{"pubdate":" ","subject":[["åºç£æ"],["åºç£æ"],["ç¥å¦"]],"author__facet":[["赵红å"]],"_id":"1","author":[["赵红å"]],"subject__facet":[["åºç£æ"],["åºç£æ"],["ç¥å¦"]],"record":[["LDR",null,null,"_","00261nam 22001213 4500"],["001",null,null,"_","1"],["005",null,null,"_","20150903102757.0"],["090"," "," ","a","1"],["100"," "," ","a","20150903d u||y0chiy50 ea"],["200"," "," ","a","åºç£æææ³å²","c","Peter","f","赵红å"],["600"," "," ","a","åºç£æ"],["601"," "," ","a","ç¥å¦"],["942"," "," ","c","BK"],["999"," "," ","c","1","d","1"]],"ta":"u","title":[["åºç£æææ³å²"],["Peter"]],"onloan":"0","Local-number":[["1"]]} }, { "_index" : "koha_biblios", "_type" : "data", "_id" : "2", "_score" : 1.0, "_source":{"pubdate":" ","subject":[["åºç£æ"],["åºç£æ"],["ç¥å¦"]],"author__facet":[["peter"]],"_id":"2","author":[["peter"]],"subject__facet":[["åºç£æ"],["åºç£æ"],["ç¥å¦"]],"record":[["LDR",null,null,"_","00257nam 22001213 4500"],["001",null,null,"_","2"],["005",null,null,"_","20150903105155.0"],["090"," "," ","a","2"],["100"," "," ","a","20150903d u||y0chiy50 ea"],["200"," "," ","a","åºç£æææ³å²","c","Peter","f","peter"],["600"," "," ","a","åºç£æ"],["601"," "," ","a","ç¥å¦"],["942"," "," ","c","BK"],["999"," "," ","c","2","d","2"]],"ta":"u","title":[["åºç£æææ³å²"],["Peter"]],"onloan":"0","Local-number":[["2"]]} } ] } } koha@koha:~$ -- You are receiving this mail because: You are watching all bug changes.