org.hibernate.search.exception.SearchException: HSEARCH000232: The specified query 'id:{1 TO 3}' contains a numeric sub query which targets the string encoded field(s) 'id'. Check your query or try limiting the targeted entities.

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
via Hibernate JIRA by Sanne Grinovero, 1 year ago
via Stack Overflow by adam
, 2 years ago
HSEARCH000233: The specified query '+(value:1 text:test)' contains a string based sub query which targets the numeric encoded field(s) 'value'. Check your query or try limiting the targeted entities.
org.hibernate.search.exception.SearchException: HSEARCH000232: The specified query 'id:{1 TO 3}' contains a numeric sub query which targets the string encoded field(s) 'id'. Check your query or try limiting the targeted entities.
at org.hibernate.search.query.engine.impl.LazyQueryState.validateQuery(LazyQueryState.java:154)
at org.hibernate.search.query.engine.impl.LazyQueryState.search(LazyQueryState.java:98)
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:114)
at org.hibernate.search.query.engine.impl.HSQueryImpl.getQueryHits(HSQueryImpl.java:452)
at org.hibernate.search.test.id.NumericIdEncodingTest.expectedProjections(NumericIdEncodingTest.java:62)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

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