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 5D8E7200BED for ; Sun, 1 Jan 2017 23:00:55 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 5C1F4160B38; Sun, 1 Jan 2017 22:00:55 +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 A68BD160B24 for ; Sun, 1 Jan 2017 23:00:54 +0100 (CET) Received: (qmail 25643 invoked by uid 500); 1 Jan 2017 22:00:52 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 25632 invoked by uid 99); 1 Jan 2017 22:00:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jan 2017 22:00:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 95AD3C17CE for ; Sun, 1 Jan 2017 22:00:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.486 X-Spam-Level: *** X-Spam-Status: No, score=3.486 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id fvK30G9jIgx7 for ; Sun, 1 Jan 2017 22:00:49 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id F2D5F5FC37 for ; Sun, 1 Jan 2017 22:00:48 +0000 (UTC) Received: from mben.nabble.com (unknown [162.253.133.72]) by mwork.nabble.com (Postfix) with ESMTP id C61FF7AF73E9 for ; Sun, 1 Jan 2017 15:00:41 -0700 (MST) Date: Sun, 1 Jan 2017 15:00:41 -0700 (MST) From: Jeffery Yuan To: solr-user@lucene.apache.org Message-ID: <1483308041812-4311899.post@n3.nabble.com> Subject: How to suse solrJ to sned delete request to delete managed resource MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Sun, 01 Jan 2017 22:00:55 -0000 I am trying to implement web services to managed stopwords and Synonyms in our solr cloud servers. https://cwiki.apache.org/confluence/display/solr/Managed+Resources I already implemented the add and get functions. But I have problem to implement delete function. My first thought is to use GenericSolrRequest, BUT org.apache.solr.client.solrj.SolrRequest.METHOD only supports GET,POST,PUT, - not DELETE. Then I tried to use solrj's httpclient - getSolrClient().getHttpClient() to send a delete request. But this would require me to know the the solr server url address. Although I managed to get solr server using CloudSolrClient via ZkStateReader, ClusterState, and then use getSolrClient().getHttpClient() to delete stopWords. I am wondering whether there are better ways to use solrJ send delete request. Thanks for your help. -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-suse-solrJ-to-sned-delete-request-to-delete-managed-resource-tp4311899.html Sent from the Solr - User mailing list archive at Nabble.com.