Skip to content

Commit

Permalink
Typo in error message with too few points for geo polygon filter.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmluy authored and clintongormley committed Dec 4, 2014
1 parent 114ff32 commit c15ab8b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ public Filter parse(QueryParseContext parseContext) throws IOException, QueryPar
throw new QueryParsingException(parseContext.index(), "no points defined for geo_polygon filter");
} else {
if (shell.size() < 3) {
throw new QueryParsingException(parseContext.index(), "to few points defined for geo_polygon filter");
throw new QueryParsingException(parseContext.index(), "too few points defined for geo_polygon filter");
}
GeoPoint start = shell.get(0);
if (!start.equals(shell.get(shell.size() - 1))) {
shell.add(start);
}
if (shell.size() < 4) {
throw new QueryParsingException(parseContext.index(), "to few points defined for geo_polygon filter");
throw new QueryParsingException(parseContext.index(), "too few points defined for geo_polygon filter");
}
}

Expand Down

0 comments on commit c15ab8b

Please sign in to comment.