You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Sam Perman (JIRA)" <ji...@apache.org> on 2013/05/21 17:41:16 UTC

[jira] [Created] (SOLR-4847) range queries are not forwarded to other shards correctly

Sam Perman created SOLR-4847:
--------------------------------

             Summary: range queries are not forwarded to other shards correctly
                 Key: SOLR-4847
                 URL: https://issues.apache.org/jira/browse/SOLR-4847
             Project: Solr
          Issue Type: Bug
          Components: search
    Affects Versions: 3.3
            Reporter: Sam Perman


We have a sharded solr cluster with 7 nodes  (We shard on publisher id). If I execute a query like this:
{code}
%2BpublisherId:123+%2BlastModifiedDate:[2010-08-01T00:00:00Z+TO+2010-10-29T00:00:00Z]
{code}

Then the query works on the shard containing the data and fails on all other shards. The error I see is:
{noformat}
org.apache.commons.httpclient.URIException: Invalid query
	org.apache.commons.httpclient.URI.parseUriReference(URI.java:2049)
	org.apache.commons.httpclient.URI.<init>(URI.java:147)
	org.apache.commons.httpclient.HttpMethodBase.getURI(HttpMethodBase.java:265)
	org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:383)
	org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
	com.brightcove.search.solr.ShardQueryURLRewriterFilter.forwardRequest(ShardQueryURLRewriterFilter.java:362)
	com.brightcove.search.solr.ShardQueryURLRewriterFilter.doFilter(ShardQueryURLRewriterFilter.java:427)
{noformat}

If I replace the brackets with the url encoded values, then it works fine.

{code}
%2BpublisherId:123+%2BlastModifiedDate:%5b2010-08-01T00:00:00Z+TO+2010-10-29T00:00:00Z%5D
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org