[ https://issues.apache.org/jira/browse/SOLR-8798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15200433#comment-15200433 ]
Steve Rowe commented on SOLR-8798: ---------------------------------- I can't reproduce the problem from unit tests - I add the following test to {{TestManagedSynonymFilterFactory}} - below passes for me: {code:java} /** * Can we add and remove synonyms with non-Latin chars */ @Test public void testCanHandleDecodingAndEncodingForSynonyms2() throws Exception { String endpoint = "/schema/analysis/synonyms/nonlatin"; assertJQ(endpoint, "/synonymMappings/initArgs/ignoreCase==false", "/synonymMappings/managedMap=={}"); // does not exist assertJQ(endpoint+"/ліжко", "/error/code==404"); Map<String,List<String>> syns = new HashMap<>(); // now put a synonym syns.put("ліжко", Collections.singletonList("кровать")); assertJPut(endpoint, JSONUtil.toJSON(syns), "/responseHeader/status==0"); // and check if it exists assertJQ(endpoint, "/synonymMappings/managedMap/ліжко==['кровать']"); // verify get works assertJQ(endpoint+"/ліжко", "/responseHeader/status==0"); assertJQ(endpoint+"/%D0%BB%D1%96%D0%B6%D0%BA%D0%BE", "/responseHeader/status==0"); // verify delete works assertJDelete(endpoint+"/ліжко", "/responseHeader/status==0"); // was it really deleted? assertJDelete(endpoint+"/ліжко", "/error/code==404"); } {code} I'll try some manual testing. > 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