lucidworks / spark-solr

Tools for reading data from Solr as a Spark RDD and indexing objects from Spark into Solr using SolrJ.
Apache License 2.0
446 stars 250 forks source link

Terms filter style filter queries give error at SolrRelation.scala line 634 #338

Open uyilmaz opened 2 years ago

uyilmaz commented 2 years ago

https://github.com/lucidworks/spark-solr/blob/340a82546cffcbc51561348208b2276b8a852b98/src/main/scala/com/lucidworks/spark/SolrRelation.scala#L634

def filterQueryAsTuple(fq: String) : (String,String) method expects all filter queries to include a colon character (:).

Terms parser filter queries, in the form {!terms field=id}123,456 gives the error java.lang.StringIndexOutOfBoundsException: String index out of range: -1