Hi Emir Thanks for the reply, i got your point. But is there any other way to do like one field could have two or more different types defined ? or if i talk about my previous query, can we index some data for the same field with different unique id after replacing the type ?
Thanks again Shubham On Tue, Oct 22, 2019 at 1:23 PM Emir Arnautović < emir.arnauto...@sematext.com> wrote: > Hi Shubham, > Changing type is not allowed without full reindexing. If you do something > like that, Solr will end up with segments with different types for the same > field. Remember that segments are immutable and that reindexing some > document will be in new segment, but old segment will still be there and at > query type Solr will have mismatch between what is stated in schema and > what is in segment. In order to change type you have to do full reindexing > - create a new collection and reindex all documents. > > HTH, > Emir > -- > Monitoring - Log Management - Alerting - Anomaly Detection > Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > > > > > On 22 Oct 2019, at 09:25, Shubham Goswami <shubham.gosw...@hotwax.co> > wrote: > > > > Hello Community > > > > I have indexed some documents for which solr has taken its type="plongs" > by > > auto guessing but i am trying to change its type="pint" and re-indexing > the > > same data with the same id and indexing the data with different id where > id > > is unique key but it is showing error. > > > > Can somebody please let me know if it is possible or not, if not possible > > then why it is not possible as i am using different id as well ? if > > possible then how we could achieve it ? > > Any help will be appreciated. Thanks in advance. > > > > -- > > *Thanks & Regards* > > Shubham Goswami > > Enterprise Software Engineer > > *HotWax Systems* > > *Enterprise open source experts* > > cell: +91-7803886288 > > office: 0731-409-3684 > > http://www.hotwaxsystems.com > > -- *Thanks & Regards* Shubham Goswami Enterprise Software Engineer *HotWax Systems* *Enterprise open source experts* cell: +91-7803886288 office: 0731-409-3684 http://www.hotwaxsystems.com