Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graph Query not supported in spring-data-solr [DATASOLR-581] #700

spring-projects-issues opened this issue May 15, 2020 · 0 comments


Copy link

@spring-projects-issues spring-projects-issues commented May 15, 2020

Subhopam Das opened DATASOLR-581 and commented

Named query feature with graph query is supported in solrJ.

The spring data solr uses the solrJ library under the hood. I am not sure why I am getting the below exception while using spring data solr. The solrJ implementation works fine

Query Working in SolrJ Working in Spring-Data-Solr
{!graph from=id to=parentCategory maxDepth=8 sort="level asc" rows=9999 returnRoot=false}id: Yes No



HttpSolrClient from solrJ is being used in the connection configuration

@Configuration @EnableSolrRepositories( basePackages = "com.x.x.x.repository", namedQueriesLocation = "") @ComponentScan public class SolrConfig { @Value("${}") String solrURL; @Bean public SolrClient solrClient() { return new HttpSolrClient.Builder(solrURL).build(); } @Bean public SolrTemplate solrTemplate(SolrClient client) throws Exception { return new SolrTemplate(client); } }




2020-05-13 00:10:23.289 ERROR 40667 --- [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.DataAccessResourceFailureException: Error from server at http://<solrserverURL>:8983/solr: Cannot parse 'id:': Encountered "<EOF>" at line 1, column 3.Was expecting one of: <BAREOPER> ... "(" ... "*" ... <QUOTED> ... <TERM> ... <PREFIXTERM> ... <WILDTERM> ... <REGEXPTERM> ...

System Specification

id 'org.springframework.boot' version '2.2.7.RELEASE'
implementation 'org.springframework.boot:spring-boot-starter-data-solr'


Steps to replicate


Are we missing something here or the support for graph query is missing from spring data solr?

No further details from DATASOLR-581

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants