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
I have groups that have spaces in them and this results in a bad solr query. A simplified query results in the following:
{'responseHeader'=>{'status'=>400,'QTime'=>0,'params'=>{'fq'=>'({!terms f=edit_access_group_ssim}public 2,test)','wt'=>'ruby'}},'error'=>{'metadata'=>['error-class','org.apache.solr.common.SolrException','root-error-class','org.apache.solr.common.SolrException'],'msg'=>'no field name specified in query and no default specified via \'df\' param','code'=>400}}
I have groups that have spaces in them and this results in a bad solr query. A simplified query results in the following:
{'responseHeader'=>{'status'=>400,'QTime'=>0,'params'=>{'fq'=>'({!terms f=edit_access_group_ssim}public 2,test)','wt'=>'ruby'}},'error'=>{'metadata'=>['error-class','org.apache.solr.common.SolrException','root-error-class','org.apache.solr.common.SolrException'],'msg'=>'no field name specified in query and no default specified via \'df\' param','code'=>400}}
If we nest the terms query, it magically works:
{'responseHeader'=>{'status'=>0,'QTime'=>0,'params'=>{'fq'=>'_query_:"{!terms f=edit_access_group_ssim}public 2,test"','wt'=>'ruby'}},'response'=>{'numFound'=>0,'start'=>0,'maxScore'=>0.0,'docs'=>[]},'facet_counts'=>{'facet_queries'=>{},'facet_fields'=>{},'facet_ranges'=>{},'facet_intervals'=>{},'facet_heatmaps'=>{}}}
I tried escaping the term with a space in various ways including using a different separator but nothing seemed to work except nesting.
The text was updated successfully, but these errors were encountered: