[ 
https://issues.apache.org/jira/browse/SOLR-8798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15201955#comment-15201955
 ] 

Steve Rowe commented on SOLR-8798:
----------------------------------

Sorry, I still can't reproduce with manual testing on Solr 5.5.0, on OS X 
10.11.3 with Oracle JDK 1.8.0_72.

Here's what I did from a freshly unpacked distribution (most responses left 
out, whitespace compressed on responses):

{code}
$ bin/solr start
$ bin/solr create -c test_managed_resource -d data_driven_schema_configs
$ curl -X POST -H 'Content-type: application/json' --data-binary '{
"add-field-type":{ "name":"managed_non_latin", "class":"solr.TextField",
  "analyzer":{ "tokenizer": { "class": "solr.StandardTokenizerFactory" },
    "filters":[{ "class":"solr.ManagedSynonymFilterFactory", 
"managed":"nonlatin" }] } } }' \ 
http://localhost:8983/solr/test_managed_resource/schema

$ curl 
"http://localhost:8983/solr/test_managed_resource/schema/analysis/synonyms/nonlatin/ліжко";
{"responseHeader":{"status":404, "QTime":2},
  "error":{ "metadata":[
      "error-class","org.apache.solr.common.SolrException",
      "root-error-class","org.apache.solr.common.SolrException"],
    "msg":"ліжко not found in /schema/analysis/synonyms/nonlatin","code":404}}

$ curl -X PUT -H 'Content-type: application/json' --data-binary 
'{"ліжко":["кровать"]}' \ 
http://localhost:8983/solr/test_managed_resource/schema/analysis/synonyms/nonlatin
{ "responseHeader":{ "status":0, "QTime":8}}

$ curl 
"http://localhost:8983/solr/test_managed_resource/schema/analysis/synonyms/nonlatin/ліжко";
{"responseHeader":{ "status":0, "QTime":1}, "ліжко":["кровать"]}

$ curl -X DELETE 
"http://localhost:8983/solr/test_managed_resource/schema/analysis/synonyms/nonlatin/ліжко";
{ "responseHeader":{ "status":0, "QTime":3}}

$ curl 
"http://localhost:8983/solr/test_managed_resource/schema/analysis/synonyms/nonlatin/ліжко";
{ "responseHeader":{ "status":404, "QTime":1},
  "error":{ "metadata":[
      "error-class","org.apache.solr.common.SolrException",
      "root-error-class","org.apache.solr.common.SolrException"],
    "msg":"ліжко not found in /schema/analysis/synonyms/nonlatin", "code":404}}
{code}

> org.apache.solr.rest.RestManager can't find cyrillic synonyms.
> --------------------------------------------------------------
>
>                 Key: SOLR-8798
>                 URL: https://issues.apache.org/jira/browse/SOLR-8798
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.9.1
>            Reporter: Vitalii
>
> RestManager doesn't work well with cyrillic symbols.
> I'm able to create new synonyms via REST interface. But I have an error when 
> I try to get created synonyns with via request:
> http://localhost:8983/solr/collection1/schema/analysis/synonyms/18/ліжко
> I get this message in console log:
> {code}
> # solr/console.log
> 4591823 [qtp1281335597-14] INFO  org.apache.solr.rest.RestManager  – Resource 
> not found for /schema/analysis/synonyms/18/%D0%BB%D1%96%D0%B6%D0%BA%D0%BE, 
> looking for parent: /schema/analysis/synonyms/18
> {code}
> But in synonyms file I have row with this word:
> {code}
> # /solr/collection1/conf/_schema_analysis_synonyms_18.json
>   "initArgs":{"ignoreCase":false},
>   "initializedOn":"2016-03-07T11:57:00.116Z",
>   "updatedSinceInit":"2016-03-07T12:19:11.174Z",
>   "managedMap":{
>     "ліжко":["кровать"],
>     "стілець":["стул"]}}
> {code}
> This issue have been tested by multiple persons and they can confirm that 
> faced this problem too.



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

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

Reply via email to