Re: Rename field in all documents from `i_itemNumber_l` to `i_itemNumber_cp_l`

2019-09-16 Thread Erick Erickson
If you’re reindexing anyway, I recommend you index to a new collection then use “collection aliasing” to point to the new one, that’s cleanest. There’s no way to rename fields. Further, the meta-data will be carried in the index forever even if all docs have been reindexed into an existing

Re: Rename field in all documents from `i_itemNumber_l` to `i_itemNumber_cp_l`

2019-09-16 Thread Alexandre Rafalovitch
I don't think you can rename it in the index. However, you may be able to rename it during the query: https://lucene.apache.org/solr/guide/6_6/common-query-parameters.html#CommonQueryParameters-FieldNameAliases Or, if you use eDisMax, during query rewriting:

Rename field in all documents from `i_itemNumber_l` to `i_itemNumber_cp_l`

2019-09-16 Thread Sebastian Riemer
Dear mailing list, I would like to know: Is there some simple way to rename a field in all documents in my solr index? I am using a dynamic schema definition, and I've introduced some new copyField-instructions. Those make it necessary to reindex all documents. It would help me a great deal