lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r902254 - /lucene/solr/branches/cloud/src/java/org/apache/solr/handler/component/QueryComponent.java
Date Fri, 22 Jan 2010 20:22:13 GMT
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) {



Mime
View raw message