You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alexandre Rafalovitch (JIRA)" <ji...@apache.org> on 2016/10/08 04:12:20 UTC

[jira] [Closed] (SOLR-3348) Garbled with shards search

     [ https://issues.apache.org/jira/browse/SOLR-3348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexandre Rafalovitch closed SOLR-3348.
---------------------------------------
    Resolution: Incomplete

Ancient issue against old alpha code base. Not enough information to go forward. If this still exists against the latest code base, a new issue can be created.

> Garbled with shards search
> --------------------------
>
>                 Key: SOLR-3348
>                 URL: https://issues.apache.org/jira/browse/SOLR-3348
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0-ALPHA
>         Environment: windows 7
>            Reporter: 震宇 蒋
>
> When searching for Chinese characters, such as "浙江",eclipse logs like:
> ...
> 四月 11, 2012 12:18:24 上午 org.apache.solr.core.SolrCore execute
> 信息: [badperson1] webapp=/FTSearch2 path=/select params={shards.qt=shard&distrib=false&wt=javabin&rows=40&version=2&fl=_UUID,score&shard.url=127.0.0.1:8080/FTSearch2/badperson1&NOW=1334074224397&start=0&q=??&isShard=true&qt=shard&fsv=true} hits=1012456 status=0 QTime=63409 
> 四月 11, 2012 12:20:54 上午 org.apache.solr.core.SolrCore execute
> 信息: [badperson1] webapp=/FTSearch2 path=/select params={NOW=1334074224397&shard.url=127.0.0.1:8080/FTSearch2/badperson1&start=30&shards.qt=shard&ids=1692455e-fcfc-451a-9221-80d0e483ab9e,e529d2fa-442d-48a7-9dea-86a6c1abf510,685d90dc-bf92-47df-9fa7-634a9c5a7330,6c17abd4-21a4-46c2-8cfb-3ad33e966c9b,fa5b4fe6-f1b5-4cf3-941a-6b2f4bc98df2,fe3e483f-68a2-4dd7-87c2-f0811d515249,ce84a4b0-777d-4663-a26d-7a9a1800e1af,2f224a5a-754b-4cea-a72e-ea52c224e846,31c27427-e0ba-4327-8eb4-4f968fce7a51,48cd8be9-c7ca-4a3c-b3b4-662d47fed5fe&q=??&distrib=false&wt=javabin&qt=shard&isShard=true&version=2&rows=10} status=0 QTime=26754 四月 11, 2012 12:21:05 上午 org.apache.solr.core.SolrCore execute
> 信息: [] webapp=/FTSearch2 path=/select params={start=30&q=浙江&rows=10} status=0 QTime=641335 
> ...
> *My Solution:*
> ??org.apache.solr.client.solrj.impl.HttpSolrServer row:269??
> for (String value : vals) {
>     entity.addPart(name, new StringBody(value,{color:red}Charset.forName("UTF-8"){color}));
> }
> ??org.apache.solr.servlet.SolrRequestParsers row:335??
> ServletFileUpload upload = new ServletFileUpload(factory);
> upload.setSizeMax(uploadLimitKB * 1024);
> {color:red}upload.setHeaderEncoding("UTF-8");{color}
> List items = upload.parseRequest(req);
> Iterator iter = items.iterator();
> while (iter.hasNext()) {
> 	FileItem item = (FileItem) iter.next();
> 	if (item.isFormField()) {
> 		MultiMapSolrParams.addParam(item.getFieldName(),
> 			item.getString({color:red}"UTF-8"{color}), params.getMap());
> 		}
> 		...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org