Dynamically adding fields to schema is yet to get released..

https://issues.apache.org/jira/browse/SOLR-3251

We used dynamic field and copy field for dynamically creating facets...

We had too many dynamic fields (retrieved from a database table) and we had
to make sure that facets exists for the new fields..

schema.xml example: 

<dynamicField name="idx_*" type="textgen"  indexed="true"  stored="true"
multiValued="true" /> 

<dynamicField name="*Facet" type="string"  indexed="true" 
multiValued="true" stored="false"/> 

 <copyField source="*" dest="*Facet" /> 

This way we were able to access the facets using the fieldname followed by
keyword 'Facet'

For ex: name field has facet field nameFacet




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Dynamically-create-new-fields-tp4070029p4070031.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to