Hi all

I have the following simple expression in solr 8.8
expr=shortestPath(core_data,from="https\://
mycompany.com/id/ARMP/AM/GT/ST/CCS1/01/03/05/96/96",to="https\://
mycompany.com/id/ARMP/AM/GT/ST/CCS1/01/03/IS/02
",edge="id=link_ss",maxDepth="4")

And this gives an error.

java.lang.RuntimeException: java.util.concurrent.ExecutionException:
java.lang.RuntimeException: java.io.IOException:
java.util.concurrent.ExecutionException: java.io.IOException: -->
http://172.22.0.28:8983/solr/core_data_shard2_replica_n2/:org.apache.solr.search.SyntaxError:
Cannot parse 'id:([https://mycompany.com/id/STL/KG1/pk_67_4])':
Encountered " "]" "] "" at line 1, column 49.
Was expecting:
    "TO" ...

    at 
org.apache.solr.client.solrj.io.graph.ShortestPathStream.open(ShortestPathStream.java:366)
    at 
org.apache.solr.client.solrj.io.stream.ExceptionStream.open(ExceptionStream.java:52)
    at 
org.apache.solr.handler.StreamHandler$TimerStream.open(StreamHandler.java:465)
    at 
org.apache.solr.client.solrj.io.stream.TupleStream.writeMap(TupleStream.java:79)
    at 
org.apache.solr.common.util.JsonTextWriter.writeMap(JsonTextWriter.java:164)
    at org.apache.solr.common.util.TextWriter.writeMap(TextWriter.java:216)
    at org.apache.solr.common.util.TextWriter.writeVal(TextWriter.java:69)
    at 
org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:153)
    at 
org.apache.solr.common.util.JsonTextWriter.writeNamedListAsMapWithDups(JsonTextWriter.java:387)
    at 
org.apache.solr.common.util.JsonTextWriter.writeNamedList(JsonTextWriter.java:293)
    at org.apache.solr.response.JSONWriter.writeResponse(JSONWriter.java:73)
    at 
org.apache.solr.response.JSONResponseWriter.write(JSONResponseWriter.java:66)
    at 
org.apache.solr.response.QueryResponseWriterUtil.writeQueryResponse(QueryResponseWriterUtil.java:65)
    at org.apache.solr.servlet.HttpSolrCall.writeResponse(HttpSolrCall.java:891)
    at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:584)
    at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:415)
    at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:345)


The problem lies with the colon (:) in the identifier. If I leave it out, I
do get an answer (no path found). I tried escaping it in numerous ways but
no avail. Should I file a bug or am I missing something?

Thanks!


Kenny

Reply via email to