Did you re-index and commit completely after the definition switch? Looks like internal representation conflict.
Regards, Alex. ---- Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter: http://www.solr-start.com/ On 4 August 2015 at 11:31, wwang525 <wwang...@gmail.com> wrote: > Hi All, > > I was trying to switch the type definition for some fields from > SortableIntField to TrieIntField so that I may be able boost the performance > for the queries that use grouping, sorting, and faceting. > > After I switched on field for grouping, I got the following error: > > java.lang.IllegalStateException: Type mismatch: nSoftVoyageCode was indexed > as NUMERIC > > The data from database is defined as int, and I did not have issue with > SortableIntField definition for this field. But apparently, it does not work > with TrieIntField. > > I had same issue with faceting columns that are defined as TriedIntField, > but not SortableIntField. As for now, the only way I can make it work is to > define the field as solr.StrField even if it is a different data type in the > database. > > Is it possible that I might have missed something? > > Thanks > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/TrieIntField-not-working-in-Solr-4-7-tp4220744.html > Sent from the Solr - User mailing list archive at Nabble.com.