Skip to content

Apache Lucene open-source search software

fix spelling in Exceptions

Koji Sekiguchi3dc6f5e2f2d7
diff --git a/src/java/org/apache/solr/handler/DocumentAnalysisRequestHandler.java b/src/java/org/apache/solr/handler/DocumentAnalysisRequestHandler.java
index b2ceba5c5dc..e66bc851c3d 100644
--- a/src/java/org/apache/solr/handler/DocumentAnalysisRequestHandler.java
+++ b/src/java/org/apache/solr/handler/DocumentAnalysisRequestHandler.java
@@ -331,17 +331,17 @@ public class DocumentAnalysisRequestHandler extends AnalysisRequestHandlerBase {
Iterable<ContentStream> streams = req.getContentStreams();
if (streams == null) {
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
- "DocumentAnlysisRequestHandler expects a single content stream with documents to analys");
+ "DocumentAnlysisRequestHandler expects a single content stream with documents to analyze");
}
Iterator<ContentStream> iter = streams.iterator();
if (!iter.hasNext()) {
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
- "DocumentAnlysisRequestHandler expects a single content stream with documents to analys");
+ "DocumentAnlysisRequestHandler expects a single content stream with documents to analyze");
}
ContentStream stream = iter.next();
if (iter.hasNext()) {
throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
- "DocumentAnlysisRequestHandler expects a single content stream with documents to analys");
+ "DocumentAnlysisRequestHandler expects a single content stream with documents to analyze");
}
return stream;
}