java.lang.IllegalStateException

Type mismatch: age was indexed with multiple values per document, use SORTED_SET instead

Solutions on the web7200

  • via Hibernate JIRA by Sanne Grinovero, 1 year ago
    Type mismatch: age was indexed with multiple values per document, use SORTED_SET instead
  • via Hibernate JIRA by Sanne Grinovero, 1 year ago
    Type mismatch: age was indexed with multiple values per document, use SORTED_SET instead
  • Type mismatch: name was indexed with multiple values per document, use SORTED_SET instead
  • Stack trace

    • java.lang.IllegalStateException: Type mismatch: age was indexed with multiple values per document, use SORTED_SET instead at org.apache.lucene.uninverting.FieldCacheImpl$SortedDocValuesCache.createValue(FieldCacheImpl.java:679)[lucene-misc-5.2.1.jar:5.2.1 1684708 - shalin - 2015-06-10 23:11:46] at org.apache.lucene.uninverting.FieldCacheImpl$Cache.get(FieldCacheImpl.java:190)[lucene-misc-5.2.1.jar:5.2.1 1684708 - shalin - 2015-06-10 23:11:46] at org.apache.lucene.uninverting.FieldCacheImpl.getTermsIndex(FieldCacheImpl.java:647)[lucene-misc-5.2.1.jar:5.2.1 1684708 - shalin - 2015-06-10 23:11:46] at org.apache.lucene.uninverting.FieldCacheImpl.getTermsIndex(FieldCacheImpl.java:627)[lucene-misc-5.2.1.jar:5.2.1 1684708 - shalin - 2015-06-10 23:11:46] at org.apache.lucene.uninverting.UninvertingReader.getSortedDocValues(UninvertingReader.java:257)[lucene-misc-5.2.1.jar:5.2.1 1684708 - shalin - 2015-06-10 23:11:46] at org.apache.lucene.index.DocValues.getSorted(DocValues.java:262)[lucene-core-5.2.1.jar:5.2.1 1684708 - shalin - 2015-06-10 23:11:06] at org.apache.lucene.search.FieldComparator$TermOrdValComparator.getSortedDocValues(FieldComparator.java:757)[lucene-core-5.2.1.jar:5.2.1 1684708 - shalin - 2015-06-10 23:11:06] at org.apache.lucene.search.FieldComparator$TermOrdValComparator.getLeafComparator(FieldComparator.java:762)[lucene-core-5.2.1.jar:5.2.1 1684708 - shalin - 2015-06-10 23:11:06] at org.apache.lucene.search.FieldValueHitQueue.getComparators(FieldValueHitQueue.java:183)[lucene-core-5.2.1.jar:5.2.1 1684708 - shalin - 2015-06-10 23:11:06] at org.apache.lucene.search.TopFieldCollector$NonScoringCollector.getLeafCollector(TopFieldCollector.java:141)[lucene-core-5.2.1.jar:5.2.1 1684708 - shalin - 2015-06-10 23:11:06] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:762)[lucene-core-5.2.1.jar:5.2.1 1684708 - shalin - 2015-06-10 23:11:06] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:485)[lucene-core-5.2.1.jar:5.2.1 1684708 - shalin - 2015-06-10 23:11:06] at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:473)[lucene-core-5.2.1.jar:5.2.1 1684708 - shalin - 2015-06-10 23:11:06] at org.hibernate.search.query.engine.impl.LazyQueryState.search(LazyQueryState.java:100)[hibernate-search-engine-5.5.0-SNAPSHOT.jar:5.5.0-SNAPSHOT] at org.hibernate.search.query.engine.impl.QueryHits.updateTopDocs(QueryHits.java:250)[hibernate-search-engine-5.5.0-SNAPSHOT.jar:5.5.0-SNAPSHOT] at org.hibernate.search.query.engine.impl.QueryHits.<init>(QueryHits.java:145)[hibernate-search-engine-5.5.0-SNAPSHOT.jar:5.5.0-SNAPSHOT] at org.hibernate.search.query.engine.impl.QueryHits.<init>(QueryHits.java:114)[hibernate-search-engine-5.5.0-SNAPSHOT.jar:5.5.0-SNAPSHOT] at org.hibernate.search.query.engine.impl.HSQueryImpl.getQueryHits(HSQueryImpl.java:452)[hibernate-search-engine-5.5.0-SNAPSHOT.jar:5.5.0-SNAPSHOT] at org.hibernate.search.query.engine.impl.HSQueryImpl.queryEntityInfos(HSQueryImpl.java:268)[hibernate-search-engine-5.5.0-SNAPSHOT.jar:5.5.0-SNAPSHOT]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.