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 31024200CB1 for ; Sat, 10 Jun 2017 04:34:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2F7AA160BD4; Sat, 10 Jun 2017 02:34:22 +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 75B37160BCA for ; Sat, 10 Jun 2017 04:34:21 +0200 (CEST) Received: (qmail 74613 invoked by uid 500); 10 Jun 2017 02:34:20 -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 74603 invoked by uid 99); 10 Jun 2017 02:34:20 -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; Sat, 10 Jun 2017 02:34:20 +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 D1641C6A54 for ; Sat, 10 Jun 2017 02:34:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id zG-ccc03oAuH for ; Sat, 10 Jun 2017 02:34:19 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id F0F975F5C6 for ; Sat, 10 Jun 2017 02:34:18 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 75C5DE02C8 for ; Sat, 10 Jun 2017 02:34:18 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1295F21938 for ; Sat, 10 Jun 2017 02:34:18 +0000 (UTC) Date: Sat, 10 Jun 2017 02:34:18 +0000 (UTC) From: "Jason Gerlowski (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SOLR-10850) HttpSolrClient Javadoc examples reference nonexistent constructors MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 10 Jun 2017 02:34:22 -0000 [ https://issues.apache.org/jira/browse/SOLR-10850?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Gerlowski updated SOLR-10850: ----------------------------------- Attachment: SOLR-10850.patch I've attached a patch updating the Javadoc. Pretty trivial change > HttpSolrClient Javadoc examples reference nonexistent constructors > ------------------------------------------------------------------ > > Key: SOLR-10850 > URL: https://issues.apache.org/jira/browse/SOLR-10850 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: SolrJ > Affects Versions: master (7.0) > Reporter: Jason Gerlowski > Priority: Minor > Fix For: master (7.0) > > Attachments: SOLR-10850.patch > > > A recent [JIRA|https://issues.apache.org/jira/browse/SOLR-10755] removed a number of deprecated constructors from the SolrClient implementations. > In the case of {{HttpSolrClient}}, the top-level Javadocs contain instantiation instructions that still reference the old constructors: > e.g. > {code} > /** > * A SolrClient implementation that talks directly to a Solr server via HTTP > * > * There are two ways to use an HttpSolrClient: > * > * 1) Pass a URL to the constructor that points directly at a particular core > *
>  *   SolrClient client = new HttpSolrClient("http://my-solr-server:8983/solr/core1");
>  *   QueryResponse resp = client.query(new SolrQuery("*:*"));
>  * 
> * In this case, you can query the given core directly, but you cannot query any other > * cores or issue CoreAdmin requests with this client. > * > * 2) Pass the base URL of the node to the constructor > *
>  *   SolrClient client = new HttpSolrClient("http://my-solr-server:8983/solr");
>  *   QueryResponse resp = client.query("core1", new SolrQuery("*:*"));
>  * 
> * In this case, you must pass the name of the required core for all queries and updates, > * but you may use the same client for all cores, and for CoreAdmin requests. > */ > {code} > These Javadocs should be updated with examples that use the client Builder types. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org