lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "milesli (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-4026) Create a custom schema with creating collection
Date Fri, 02 Nov 2012 02:24:12 GMT

    [ 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


Mime
View raw message