https://solr.apache.org/guide/8_8/collection-management.html#reindexcollection
See the "fl" param ~ David Smiley Apache Lucene/Solr Search Developer http://www.linkedin.com/in/davidwsmiley On Mon, Mar 22, 2021 at 9:01 AM Karl Stoney <[email protected]> wrote: > Hi, > Sorry for all the questions recently… > > So as per https://solr.apache.org/guide/8_0/reindexing.html; we’re trying > to remove a load of fields. Subsequently we’ve created a new collection > with the new schema and we’re attempting to reindex from old to new. > There’s about 216 fields in total being removed… > > The REINDEX fails though, because the field has been removed: > > 2:52:31.508 > [DaemonStream-at-uk-003-12889-thread-1-processing-n:solr-0.search-solr.svc.cluster.local:80_solr > x:at-uk-002_shard1_replica_n1 c:at-uk-002 s:shard1 r:core_node2] ERROR > org.apache.solr.client.solrj.io.stream.DaemonStream - Fatal Error in > DaemonStream: at-uk-003 > org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: > Error from server at > http://solr-0.search-solr.svc.cluster.local:80/solr/at-uk-003: ERROR: > [doc=PVc175f0f12f8f43789a7c1863e10229cd] unknown field > 'OEM_ENGINE_MARKETING' > > Surely this field should simply just be ignored? > > I can’t see any way of using REINDEXCOLLECTION to reindex data from one > collection to another where we have removed fields. > > Any input would be appreciated. > Unless expressly stated otherwise in this email, this e-mail is sent on > behalf of Auto Trader Limited Registered Office: 1 Tony Wilson Place, > Manchester, Lancashire, M15 4FN (Registered in England No. 03909628). Auto > Trader Limited is part of the Auto Trader Group Plc group. This email and > any files transmitted with it are confidential and may be legally > privileged, and intended solely for the use of the individual or entity to > whom they are addressed. If you have received this email in error please > notify the sender. This email message has been swept for the presence of > computer viruses. >
