You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by yo...@apache.org on 2010/01/22 21:22:13 UTC

svn commit: r902254 - /lucene/solr/branches/cloud/src/java/org/apache/solr/handler/component/QueryComponent.java

Author: yonik
Date: Fri Jan 22 20:22:13 2010
New Revision: 902254

URL: http://svn.apache.org/viewvc?rev=902254&view=rev
Log:
typo fix

Modified:
    lucene/solr/branches/cloud/src/java/org/apache/solr/handler/component/QueryComponent.java

Modified: lucene/solr/branches/cloud/src/java/org/apache/solr/handler/component/QueryComponent.java
URL: http://svn.apache.org/viewvc/lucene/solr/branches/cloud/src/java/org/apache/solr/handler/component/QueryComponent.java?rev=902254&r1=902253&r2=902254&view=diff
==============================================================================
--- lucene/solr/branches/cloud/src/java/org/apache/solr/handler/component/QueryComponent.java (original)
+++ lucene/solr/branches/cloud/src/java/org/apache/solr/handler/component/QueryComponent.java Fri Jan 22 20:22:13 2010
@@ -115,7 +115,7 @@
 
     // for back compat, a shards param with URLs like localhost:8983/solr will mean that this
     // search is distributed.
-    boolean hasShardURL = shards != null && shards.charAt('/') > 0;
+    boolean hasShardURL = shards != null && shards.indexOf('/') > 0;
     rb.isDistrib = hasShardURL | rb.isDistrib;  
 
     if (rb.isDistrib) {