java.lang.IllegalArgumentException: field="rating" was indexed with numDims=0 but this query has numDims=1

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 Apache's JIRA Issue Tracker by Ishan Chattopadhyaya, 1 year ago
field="rating" was indexed with numDims=0 but this query has numDims=1
java.lang.IllegalArgumentException: field="rating" was indexed with numDims=0 but this query has numDims=1
at org.apache.lucene.search.DimensionalRangeQuery$1.scorer(DimensionalRangeQuery.java:186)
at org.apache.lucene.search.Weight.bulkScorer(Weight.java:135)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:667)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:474)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:593)
at org.apache.lucene.search.IndexSearcher.searchAfter(IndexSearcher.java:451)
at undefined.DimensionalRangeQueryExample.query(DimensionalRangeQueryExample.java:66)

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.

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