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.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web29

  • 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.
  • 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.
  • 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.
  • Stack trace

    • 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.<init>(QueryHits.java:145) at org.hibernate.search.query.engine.impl.QueryHits.<init>(QueryHits.java:114) at org.hibernate.search.query.engine.impl.HSQueryImpl.getQueryHits(HSQueryImpl.java:452) at org.hibernate.search.query.engine.impl.HSQueryImpl.queryEntityInfos(HSQueryImpl.java:268) at org.hibernate.search.test.id.NumericIdEncodingTest.expectedProjections(NumericIdEncodingTest.java:62)

    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

    Unknown user
    Once, 1 year ago