java.lang.IllegalStateException: Type mismatch: ageForIntSorting was indexed with multiple values per document, use SORTED_SET instead

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by Sanne Grinovero, 1 year ago
Type mismatch: ageForIntSorting was indexed with multiple values per document, use SORTED_SET instead
via Hibernate JIRA by Sanne Grinovero, 1 year ago
Type mismatch: ageForIntSorting was indexed with multiple values per document, use SORTED_SET instead
via Stack Overflow by Ashika Umanga Umagiliya
, 9 months ago
java.lang.IllegalStateException: Type mismatch: ageForIntSorting was indexed with multiple values per document, use SORTED_SET instead
at org.apache.lucene.uninverting.FieldCacheImpl$SortedDocValuesCache.createValue(FieldCacheImpl.java:679)
at org.apache.lucene.uninverting.FieldCacheImpl$Cache.get(FieldCacheImpl.java:190)
at org.apache.lucene.uninverting.FieldCacheImpl.getTermsIndex(FieldCacheImpl.java:647)
at org.apache.lucene.uninverting.FieldCacheImpl.getTermsIndex(FieldCacheImpl.java:627)
at org.apache.lucene.uninverting.UninvertingReader.getSortedDocValues(UninvertingReader.java:257)
at org.apache.lucene.index.DocValues.getSorted(DocValues.java:262)
at org.apache.lucene.search.FieldComparator$TermOrdValComparator.getSortedDocValues(FieldComparator.java:757)
at org.apache.lucene.search.FieldComparator$TermOrdValComparator.getLeafComparator(FieldComparator.java:762)
at org.apache.lucene.search.FieldValueHitQueue.getComparators(FieldValueHitQueue.java:183)
at org.apache.lucene.search.TopFieldCollector$NonScoringCollector.getLeafCollector(TopFieldCollector.java:141)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:762)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:485)
at org.hibernate.search.query.engine.impl.LazyQueryState.search(LazyQueryState.java:100)
at org.hibernate.search.query.engine.impl.QueryHits.updateTopDocs(QueryHits.java:250)
at org.hibernate.search.query.engine.impl.QueryHits.(QueryHits.java:145)
at org.hibernate.search.query.engine.impl.QueryHits.(QueryHits.java:123)
at org.hibernate.search.query.engine.impl.HSQueryImpl.getQueryHits(HSQueryImpl.java:447)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.