add geo_bbox as an alias to geo bounding box

This commit is contained in:
kimchy 2011-02-06 21:58:49 +02:00
parent 151e24c5bd
commit 02a2ebb84b
1 changed files with 2 additions and 2 deletions

View File

@ -43,14 +43,14 @@ import static org.elasticsearch.index.query.support.QueryParsers.*;
*/
public class GeoBoundingBoxFilterParser extends AbstractIndexComponent implements XContentFilterParser {
public static final String NAME = "geo_bounding_box";
public static final String NAME = "geo_bbox";
@Inject public GeoBoundingBoxFilterParser(Index index, @IndexSettings Settings indexSettings) {
super(index, indexSettings);
}
@Override public String[] names() {
return new String[]{NAME, "geoBoundingBox"};
return new String[]{NAME, "geoBbox", "geo_bounding_box", "geoBoundingBox"};
}
@Override public Filter parse(QueryParseContext parseContext) throws IOException, QueryParsingException {