code: protected void spatial(String field, Function<SpatialOptionsFactory, SpatialOptions> indexing) {
          spatialOptionsStrings.put(field, indexing.apply(new SpatialOptionsFactory()));
      }
docs: Register a field to be spatially indexed
  @param field Field
  @param indexing factory for spatial options