Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B62FE200BD4 for ; Thu, 1 Dec 2016 21:42:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B4D5F160B0B; Thu, 1 Dec 2016 20:42:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 13C9A160B26 for ; Thu, 1 Dec 2016 21:41:59 +0100 (CET) Received: (qmail 59063 invoked by uid 500); 1 Dec 2016 20:41:59 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 58721 invoked by uid 99); 1 Dec 2016 20:41:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2016 20:41:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B78C92C2A69 for ; Thu, 1 Dec 2016 20:41:58 +0000 (UTC) Date: Thu, 1 Dec 2016 20:41:58 +0000 (UTC) From: "Brenda Gonzalez (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SOLR-6853) solr.ManagedSynonymFilterFactory/ManagedStopwordFilterFactory: URLEncoding - Not able to delete Synonyms/Stopwords with special characters MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 01 Dec 2016 20:42:00 -0000 [ https://issues.apache.org/jira/browse/SOLR-6853?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15713= 022#comment-15713022 ]=20 Brenda Gonzalez commented on SOLR-6853: --------------------------------------- I would be great that this REST API could handle slashes specially at remov= ing synonyms. Because in the case of using *fractions* (1/4, 1/2, 1/8), even the URL have= been encoded, it always returns 404 and the following in solr log. {code} o.a.s.r.RestManager Resource not found for /schema/analysis/synonyms/en/1/4= , looking for parent: /schema/analysis/synonyms/en/1 {code} > solr.ManagedSynonymFilterFactory/ManagedStopwordFilterFactory: URLEncodin= g - Not able to delete Synonyms/Stopwords with special characters > -------------------------------------------------------------------------= ----------------------------------------------------------------- > > Key: SOLR-6853 > URL: https://issues.apache.org/jira/browse/SOLR-6853 > Project: Solr > Issue Type: Bug > Components: Schema and Analysis > Affects Versions: 4.10.2 > Environment: Solr 4.10.2 running @ Win7 > Reporter: Tomasz Sulkowski > Labels: ManagedStopwordFilterFactory, ManagedSynonymFilterFa= ctory, REST, SOLR > Attachments: SOLR-6853.patch > > > Hi Guys, > We're using the SOLR Rest API in order to manage synonyms and stopwords w= ith solr.Managed*FilterFactory. > {_emphasis_}The same applies to stopwords. I am going to explain the syno= nym case only from this point on.{_emphasis_} > Let us consider the following _schema_analysis_synonyms_en.json managedMa= p: { > "xxx#xxx":["xxx#xxx"], > "xxx%xxx":["xxx%xxx"], > "xxx/xxx":["xxx/xxx"], > "xxx:xxx":["xxx:xxx"], > "xxx;xxx":["xxx;xxx"], > "xxxxxx ":["xxxxxx "] > } > I can add such synonym to keyword relations using REST API. The problem i= s that I cannot remove/list them as http://localhost:8983/solr/collection1/= schema/analysis/synonyms/en/ where is one of the map= 's key throws 404, or 500 (in case of xxx%25xxx): > java.lang.NullPointerException at org.apache.solr.servlet.SolrDispatchFil= ter.doFilter(SolrDispatchFilter.java:367) at org.apache.solr.servlet.SolrDi= spatchFilter.doFilter(SolrDispatchFilter.java:207) at org.eclipse.jetty.ser= vlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419) at org.e= clipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455) at or= g.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)= at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:= 557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHan= dler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(= ContextHandler.java:1075) at org.eclipse.jetty.servlet.ServletHandler.doSco= pe(ServletHandler.java:384) at org.eclipse.jetty.server.session.SessionHand= ler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.Co= ntextHandler.doScope(ContextHandler.java:1009) at org.eclipse.jetty.server.= handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.s= erver.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java= :255) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerC= ollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.hand= le(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Serve= r.java:368) at org.eclipse.jetty.server.AbstractHttpConnection.handleReques= t(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.BlockingHttp= Connection.handleRequest(BlockingHttpConnection.java:53) at org.eclipse.jet= ty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java= :942) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.hea= derComplete(AbstractHttpConnection.java:1004) at org.eclipse.jetty.http.Htt= pParser.parseNext(HttpParser.java:640) at org.eclipse.jetty.http.HttpParser= .parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.BlockingHt= tpConnection.handle(BlockingHttpConnection.java:72) at org.eclipse.jetty.se= rver.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264) at= org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.jav= a:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThread= Pool.java:543) at java.lang.Thread.run(Unknown Source) -- 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