Fwiw, it wouldn't surprise me if you can't facet or sort on a trie field with a precision step above 0.
That feature indexes at multiple precisions to make range queries efficient. You may need to index the value twice, once with a precision step for ranges, and once without (or zero rather). Both would be a TrieField, you would use a copyField declaration in your schema to duplicate the field. Upayavira On Wed, Aug 5, 2015, at 09:55 AM, Upayavira wrote: > How did you trigger that exception, and can you guve the full exception? > > Upayavira > > On Tue, Aug 4, 2015, at 09:14 PM, wwang525 wrote: > > Hi Upayavira, > > > > I have physically cleaned up the files under index directory, and > > re-index > > did not fix the problem. > > > > The following is an example of the field definition: > > > > <field name="DateDep" type="tint" indexed="true" stored="true" > > docValues="true" default="0" required="true"/> > > > > and the following is the definition of tint > > > > <fieldType name="tint" class="solr.TrieIntField" precisionStep="8" > > positionIncrementGap="0"/> > > > > For some reason, I keep getting the error message: > > > > > > Caused by: java.lang.IllegalStateException: Type mismatch: DateDep was > > indexed as NUMERIC > > > > I am on Solr 4.7. I edited the out-of-box solrconfig.xml for DIH example > > to > > include necessary libraries: > > > > <lib dir="../../../../dist/" regex="solr-dataimporthandler-.*\.jar" /> > > > > > > <lib dir="../../../../contrib/extraction/lib" regex=".*\.jar" /> > > <lib dir="../../../../dist/" regex="solr-cell-\d.*\.jar" /> > > > > <lib dir="../../../../contrib/clustering/lib/" regex=".*\.jar" /> > > <lib dir="../../../../dist/" regex="solr-clustering-\d.*\.jar" /> > > > > <lib dir="../../../../contrib/langid/lib/" regex=".*\.jar" /> > > <lib dir="../../../../dist/" regex="solr-langid-\d.*\.jar" /> > > > > <lib dir="../../../../contrib/velocity/lib" regex=".*\.jar" /> > > <lib dir="../../../../dist/" regex="solr-velocity-\d.*\.jar" /> > > > > > > Not sure if there is something that is missing. > > > > Thanks > > > > > > > > -- > > View this message in context: > > http://lucene.472066.n3.nabble.com/TrieIntField-not-working-in-Solr-4-7-tp4220744p4220840.html > > Sent from the Solr - User mailing list archive at Nabble.com.