Skip to content

Apache Lucene open-source search software

expanding SolrRequestParsers api to construct a SolrQueryRequest from a Collection, not just a List. (this is useful for an embedded SOLR-20 client)

Ryan McKinley89f74f85b9ea
diff --git a/src/webapp/src/org/apache/solr/servlet/SolrRequestParsers.java b/src/webapp/src/org/apache/solr/servlet/SolrRequestParsers.java
index c386219f686..35bbefb1cb1 100644
--- a/src/webapp/src/org/apache/solr/servlet/SolrRequestParsers.java
+++ b/src/webapp/src/org/apache/solr/servlet/SolrRequestParsers.java
@@ -108,7 +108,7 @@ public class SolrRequestParsers
return sreq;
}
- SolrQueryRequest buildRequestFrom( SolrParams params, List<ContentStream> streams ) throws Exception
+ SolrQueryRequest buildRequestFrom( SolrParams params, Collection<ContentStream> streams ) throws Exception
{
// The content type will be applied to all streaming content
String contentType = params.get( SolrParams.STREAM_CONTENTTYPE );