You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "milesli (JIRA)" <ji...@apache.org> on 2012/11/01 04:49:11 UTC

[jira] [Created] (SOLR-4026) Create a custom schema with creating collection

milesli created SOLR-4026:
-----------------------------

             Summary: Create a custom schema with creating collection
                 Key: SOLR-4026
                 URL: https://issues.apache.org/jira/browse/SOLR-4026
             Project: Solr
          Issue Type: Wish
    Affects Versions: 4.0
            Reporter: milesli


It seems like we can not create custom schema for different collection,

if we can  add schema configuration parameters to url of creating collection, that's better.

thanks.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Comment Edited] (SOLR-4026) Create a custom schema with creating collection

Posted by "milesli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489204#comment-13489204 ] 

milesli edited comment on SOLR-4026 at 11/2/12 2:23 AM:
--------------------------------------------------------

1  Not modify an existing schema,  but rather put a new schema. 

for example:
  
   POST:
   http://127.0.0.1:8983/solr/admin/collections?action=CREATE&name=new_collection&numShards=3&numReplicas=2

   POST data:
{
"mapping":{
    "properties":{
        "address":{
            "type":"string"
        },
        "age":{
            "type":"string"
        },
        "branch":{
            "type":"string"
        },
        "company":{
            "type":"string"
        },
        "interest":{
            "type":"string"
        },
        "mail":{
            "type":"string"
        },
        "name":{
            "type":"string"
        },
        "oid":{
            "type":"string"
        },
        "ts":{
            "type":"string"
        }
    }
 }
}

we can also put other configurations(Stopwords;solrconfig.xml ... ) into post data.


2  Now , we want to create collection that have different schema from the others.
    so what can i do?
  
3  In a production environment , i am not sure that we are really allowed to log on the machine and upload configuration files or modify schema file.

    
    
 
  

                
      was (Author: sezelee):
    1  Not modify an existing schema,  but rather put a new schema. 

for example:
  
   POST:
   http://127.0.0.1:8983/solr/admin/collections?action=CREATE&name=new_collection&numShards=3&numReplicas=2

   POST data:
{
"mapping":{
    "properties":{
        "address":{
            "type":"string"
        },
        "age":{
            "type":"string"
        },
        "branch":{
            "type":"string"
        },
        "company":{
            "type":"string"
        },
        "interest":{
            "type":"string"
        },
        "mail":{
            "type":"string"
        },
        "name":{
            "type":"string"
        },
        "oid":{
            "type":"string"
        },
        "ts":{
            "type":"string"
        }
    }
 }
}

we can also put other configurations(Stopwords;solrconfig.xml ... ) into post data.


2  Now , we want to create collection that have different schema from the others.
    so what can i do?
  
3  In a production environment , i am not sure that we are really allowed to log on the machine and upload config files or modify schema file.

    
    
 
  

                  
> Create a custom schema with creating collection
> -----------------------------------------------
>
>                 Key: SOLR-4026
>                 URL: https://issues.apache.org/jira/browse/SOLR-4026
>             Project: Solr
>          Issue Type: Wish
>    Affects Versions: 4.0
>            Reporter: milesli
>
> It seems like we can not create custom schema for different collection,
> if we can  add schema configuration parameters to url of creating collection, that's better.
> thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-4026) Create a custom schema with creating collection

Posted by "milesli (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13489204#comment-13489204 ] 

milesli commented on SOLR-4026:
-------------------------------

1  Not modify an existing schema,  but rather put a new schema. 

for example:
  
   POST:
   http://127.0.0.1:8983/solr/admin/collections?action=CREATE&name=new_collection&numShards=3&numReplicas=2

   POST data:
{
"mapping":{
    "properties":{
        "address":{
            "type":"string"
        },
        "age":{
            "type":"string"
        },
        "branch":{
            "type":"string"
        },
        "company":{
            "type":"string"
        },
        "interest":{
            "type":"string"
        },
        "mail":{
            "type":"string"
        },
        "name":{
            "type":"string"
        },
        "oid":{
            "type":"string"
        },
        "ts":{
            "type":"string"
        }
    }
 }
}

we can also put other configurations(Stopwords;solrconfig.xml ... ) into post data.


2  Now , we want to create collection that have different schema from the others.
    so what can i do?
  
3  In a production environment , i am not sure that we are really allowed to log on the machine and upload config files or modify schema file.

    
    
 
  

                
> Create a custom schema with creating collection
> -----------------------------------------------
>
>                 Key: SOLR-4026
>                 URL: https://issues.apache.org/jira/browse/SOLR-4026
>             Project: Solr
>          Issue Type: Wish
>    Affects Versions: 4.0
>            Reporter: milesli
>
> It seems like we can not create custom schema for different collection,
> if we can  add schema configuration parameters to url of creating collection, that's better.
> thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-4026) Create a custom schema with creating collection

Posted by "Erick Erickson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-4026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13488645#comment-13488645 ] 

Erick Erickson commented on SOLR-4026:
--------------------------------------

I don't quite understand what you mean here. Are you talking about the CREATE action on cores admin? And by "add schema configuration parameters to the URL", do you mean modify an existing schema somehow or stream up one you have locally?

I can see where streaming up your local schema.xml (that you'd customized) would be useful, but..... to have a complete solution that would allow you to _completely_ create a new instance without having already having at least a <newcollection>/conf directory in place, you'd also have to provide a way to put all the _other_ conf files that you needed up on your server. Stopwords, solrconfig.xml, mapping files, synonyms, even, admin_extra.html.

This problem seems like something that would be very awkward to solve in Solr via a URL, it seems like an infrastructure that needed to do something like this would be better off scripting putting the conf directory "the right place" then using CREATE as it stands now....
                
> Create a custom schema with creating collection
> -----------------------------------------------
>
>                 Key: SOLR-4026
>                 URL: https://issues.apache.org/jira/browse/SOLR-4026
>             Project: Solr
>          Issue Type: Wish
>    Affects Versions: 4.0
>            Reporter: milesli
>
> It seems like we can not create custom schema for different collection,
> if we can  add schema configuration parameters to url of creating collection, that's better.
> thanks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org