Re: How to dynamically create Solr cores with schema

2014-11-10 Thread Andreas Hubold
Hi Alex, Solr 4.10 has support to create fields (of already defined types) with its Schema API: https://cwiki.apache.org/confluence/display/solr/Schema+API#SchemaAPI-Modifytheschema But one has to specify an initial schema.xml which is shared forever between all cores created from the same co

Re: How to dynamically create Solr cores with schema

2014-11-08 Thread Jorge Luis Betancourt González
ynamically create Solr cores with schema For more advanced dynamic fields refer dynamicField elements convention patterns for fields from the below schema.xml http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/server/solr/configsets/basic_configs/conf/schema.xml solr create core api can be referred

Re: How to dynamically create Solr cores with schema

2014-11-08 Thread Anurag Sharma
For more advanced dynamic fields refer dynamicField elements convention patterns for fields from the below schema.xml http://svn.apache.org/repos/asf/lucene/dev/trunk/solr/server/solr/configsets/basic_configs/conf/schema.xml solr create core api can be referred to create a core dynamically. e.g. c

Re: How to dynamically create Solr cores with schema

2014-11-07 Thread Alexandre Rafalovitch
The usual solution to that is to have dynamic fields with suffixes indicating the types. So, your int fields are mapped to *_i, your date fields to *_d. Solr has schemaless support, but it is auto-detect for now. Creating fields of particular types via API I think is in JIRA on the trunk for 5.0.

Re: How to dynamically create Solr cores with schema

2014-11-07 Thread Andreas Hubold
Can somebody help, please? I don't think my use-case is so uncommon. I read this JIRA comment where the idea of using config sets as templates was brought up https://issues.apache.org/jira/browse/SOLR-4478?focusedCommentId=13711098&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-ta

How to dynamically create Solr cores with schema

2014-11-06 Thread Andreas Hubold
Hi, I have a use-case where Java applications need to create Solr indexes dynamically. Schema fields of these indexes differ and should be defined by the Java application upon creation. So I'm trying to use the Core Admin API [1] to create new cores and the Schema API [2] to define fields. W