fix error message

This commit is contained in:
kimchy 2011-06-15 12:32:28 +03:00
parent fee1747947
commit 551b98f2f8
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ public class SpanOrQueryParser implements QueryParser {
while ((token = parser.nextToken()) != XContentParser.Token.END_ARRAY) {
Query query = parseContext.parseInnerQuery();
if (!(query instanceof SpanQuery)) {
throw new QueryParsingException(parseContext.index(), "spanNear [clauses] must be of type span query");
throw new QueryParsingException(parseContext.index(), "spanOr [clauses] must be of type span query");
}
clauses.add((SpanQuery) query);
}