On 4/12/2017 8:04 PM, Prashant Saraswat wrote: > I'm using Solr 6.4.0. The schema was created on 6.4.0 and I indexed several > hundred thousand documents and everything was fine. > > Now I added one field to the schema: > > <field name="transaction_amount_display" type="tdouble" indexed="true" > stored="true" required="false"/> > > I suddenly start getting this error for certain queries ( not all queries and > even for queries that have nothing to do with this field ). See full > exception below. > > Am I supposed to reindex the entire dataset when anything changes in the > schema as long as even one field is using docvalues?
The error suggests that the definition for listing_lastmodified was altered at some point without reindexing. I'm guessing that the field did NOT have docValues originally, then docValues was enabled. When the docValues setting for a field is changed, deleting the index and rebuilding it is required. In 6.4.0, simple field types like the TrieDoubleField used for tdouble have docValues enabled by default. Adding a field should never require a reindex, unless you want to populate that field in documents that have already been indexed. Thanks, Shawn