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 46FD3200C61 for ; Tue, 25 Apr 2017 18:07:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 45A3F160BB3; Tue, 25 Apr 2017 16:07:12 +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 66616160B9E for ; Tue, 25 Apr 2017 18:07:11 +0200 (CEST) Received: (qmail 77527 invoked by uid 500); 25 Apr 2017 16:07:09 -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 77390 invoked by uid 99); 25 Apr 2017 16:07:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2017 16:07:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C26B41B0A44 for ; Tue, 25 Apr 2017 16:07:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id GKYszqQUTzT3 for ; Tue, 25 Apr 2017 16:07:07 +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 C380A5FCBB for ; Tue, 25 Apr 2017 16:07:05 +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 2DD3BE0BE1 for ; Tue, 25 Apr 2017 16:07:05 +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 8DC9A258BC for ; Tue, 25 Apr 2017 16:07:04 +0000 (UTC) Date: Tue, 25 Apr 2017 16:07:04 +0000 (UTC) From: "Ishan Chattopadhyaya (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (SOLR-10272) Use a default configset and make the configName parameter optional. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 25 Apr 2017 16:07:12 -0000 [ https://issues.apache.org/jira/browse/SOLR-10272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15983115#comment-15983115 ] Ishan Chattopadhyaya edited comment on SOLR-10272 at 4/25/17 4:06 PM: ---------------------------------------------------------------------- Adding a patch for this. # It bootstraps the data_driven_schema_configs as _default upon startup and uses it for creating collections when configset name is not specified. # TODO: Resolve a few minor nocommits (documentation etc.) # There is no change in behaviour from bin/solr script, but internally it is using the _default when collection name is not specified. # Behaviour so far has been: if collections API's CREATE command is called without a configName, and there is only 1 configset uploaded, it is used for creating the collection. However, with the _default being bootstrapped, *this behaviour would be broken*, and in such a case the _default would be used. *This is a break in backcompat (if we do this in branch_6x), but I think it is okay to do this for the sake of consistency (script vs. collections API). If someone thinks otherwise, I can commit this issue only for master/7.0*. # The tests can use the _default if we add a data_driven_schema_configs folder to solr/core/src/test-files/solr/configsets folder or use the "solr.default.configdir" sysprop. I have not changed existing tests to do this, so as to minimize this patch size. It can be done separately. was (Author: ichattopadhyaya): Adding a patch for this. # It bootstraps the data_driven_schema_configs as _default upon startup and uses it for creating collections when collection name is not specified. # TODO: Resolve a few minor nocommits (documentation etc.) # There is no change in behaviour from bin/solr script, but internally it is using the _default when collection name is not specified. # Behaviour so far has been: if collections API's CREATE command is called without a configName, and there is only 1 configset uploaded, it is used for creating the collection. However, with the _default being bootstrapped, this behaviour would be broken, and in such a case the _default would be used. This is a break in backcompat (if we do this in branch_6x), but I think it is okay to do this for the sake of consistency (script vs. collections API). If someone things otherwise, I can commit this issue only for master/7.0. # The tests can use the _default if we add a data_driven_schema_configs folder to solr/core/src/test-files/solr/configsets folder or use the "solr.default.configdir" sysprop. I have not changed existing tests to do this, so as to minimize this patch size. It can be done separately. > Use a default configset and make the configName parameter optional. > ------------------------------------------------------------------- > > Key: SOLR-10272 > URL: https://issues.apache.org/jira/browse/SOLR-10272 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Varun Thacker > Assignee: Ishan Chattopadhyaya > Attachments: SOLR-10272.patch > > > This Jira's motivation is to improve the creating a collection experience better for users. > To create a collection we need to specify a configName that needs to be present in ZK. When a new user is starting Solr why should he worry about having to know about configsets before he can can create a collection. > When you create a collection using "bin/solr create" the script uploads a configset and references it. This is great. We should extend this idea to API users as well. > So here is the rough outline of what I think we can do here: > 1. When you start solr , the bin script checks to see if "/configs/_baseConfigSet" znode is present . If not it uploads the "basic_configs". > We can discuss if its the "basic_configs" or something other default config set. > Also we can discuss the name for "/_baseConfigSet". Moving on though > 2. When a user creates a collection from the API {{admin/collections?action=CREATE&name=gettingstarted}} here is what we do : > Use https://cwiki.apache.org/confluence/display/solr/ConfigSets+API to copy over the default config set to a configset with the name of the collection specified. > collection.configName can truly be an optional parameter. If its specified we don't need to do this step. > 3. Have the bin scripts use this and remove the logic built in there to do the same thing. -- 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