Hello Edwin, The issue is the space in child query clause. Please refer to child range query via v=$qparam like it's proposed in http://blog-archive.griddynamics.com/2013/12/grandchildren-and-siblings-with-block.html
On Mon, Jul 25, 2016 at 1:40 PM, Zheng Lin Edwin Yeo <edwinye...@gmail.com> wrote: > Hi, > > I am using Solr 6.1.0, and I'm indexing Parent-Child data into Solr. > > When I do my query, I use the Block Join Parent Query Parser, to return > only the parent's records, and not any of the child records, even though > there might be a match in the child record. > > However, I am not able to do the range query for the child record. For > example, if I search with this query > q=* +title:join *+{!parent which="*content_type:parentDocument*"}range_f:[2 > TO 8] > > I will get the following error: > > { > "responseHeader":{ > "zkConnected":true, > "status":400, > "QTime":3}, > "error":{ > "metadata":[ > "error-class","org.apache.solr.common.SolrException", > "root-error-class","org.apache.solr.parser.ParseException"], > "msg":"org.apache.solr.search.SyntaxError: Cannot parse > 'range_f:[2': Encountered \"<EOF>\" at line 1, column 18.\r\nWas > expecting one of:\r\n \"TO\" ...\r\n <RANGE_QUOTED> ...\r\n > <RANGE_GOOP> ...\r\n ", > "code":400}} > > > What could be the issue here? > > Regards, > Edwin > -- Sincerely yours Mikhail Khludnev Principal Engineer, Grid Dynamics