BoundingBoxIndexerFactory implements IndexerFactory { @Override public MatchPriority getQueryPriority(String search) { Matcher bboxMatcher = BBOX_PATTERN.matcher(search); if (bboxMatcher.matches()) { return MatchPriority.ONLY; } return MatchPriority.NONE; } BoundingBoxIndexerFactory(); void setDefaultCrs(String defaultCrs); @Override Map<String, Object> getMapping(); @Override MatchPriority getQueryPriority(String search); @Override JsonObject compileQuery(String search);  }
@Test public void testInvalid() { BoundingBoxIndexerFactory factory = new BoundingBoxIndexerFactoryImpl(); assertEquals(MatchPriority.NONE, factory.getQueryPriority("")); assertEquals(MatchPriority.NONE, factory.getQueryPriority("42")); }