You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 27, 2020. It is now read-only.
I am using spring data cassandra . I would like to use cassandra lucene index for quering the data . But while using thse queries getting following error Exception in thread "main" com.datastax.driver.core.exceptions.SyntaxError: line 1:98 missing EOF at '12341' (... associations WHERE lucene = '{query : {type : "match",field : "physicianid",value :'[12341]'}...) at com.datastax.driver.core.exceptions.SyntaxError.copy(SyntaxError.java:35) at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:269) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:183) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:52) at org.springframework.cassandra.core.CqlTemplate$12.doInSession(CqlTemplate.java:503) at org.springframework.cassandra.core.CqlTemplate$12.doInSession(CqlTemplate.java:494) at org.springframework.cassandra.core.CqlTemplate.doExecute(CqlTemplate.java:471) at org.springframework.cassandra.core.CqlTemplate.doExecute(CqlTemplate.java:494) at org.springframework.cassandra.core.CqlTemplate.doExecute(CqlTemplate.java:483)
My query method is given below @Query("SELECT * FROM associations WHERE lucene = '{query : {type : \"match\",field : \"physicianid\",value :?0}}'") List<Associations> findByPhysicianId(String physicianid);
Is there any way to escape the value ? Please help
The text was updated successfully, but these errors were encountered:
Hi,
I am using spring data cassandra . I would like to use cassandra lucene index for quering the data . But while using thse queries getting following error
Exception in thread "main" com.datastax.driver.core.exceptions.SyntaxError: line 1:98 missing EOF at '12341' (... associations WHERE lucene = '{query : {type : "match",field : "physicianid",value :'[12341]'}...) at com.datastax.driver.core.exceptions.SyntaxError.copy(SyntaxError.java:35) at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:269) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:183) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:52) at org.springframework.cassandra.core.CqlTemplate$12.doInSession(CqlTemplate.java:503) at org.springframework.cassandra.core.CqlTemplate$12.doInSession(CqlTemplate.java:494) at org.springframework.cassandra.core.CqlTemplate.doExecute(CqlTemplate.java:471) at org.springframework.cassandra.core.CqlTemplate.doExecute(CqlTemplate.java:494) at org.springframework.cassandra.core.CqlTemplate.doExecute(CqlTemplate.java:483)
My query method is given below
@Query("SELECT * FROM associations WHERE lucene = '{query : {type : \"match\",field : \"physicianid\",value :?0}}'") List<Associations> findByPhysicianId(String physicianid);
Is there any way to escape the value ? Please help
The text was updated successfully, but these errors were encountered: