code: static SpatialOperation parseSpatialOperation(String operation) {
          if (operation == null) {
              throw new IndexException("Operation is required");
          } else if (operation.equalsIgnoreCase("is_within")) {
              return SpatialOperation.IsWithin;
          } else if (operation.equalsIgnoreCase("contains")) {
              return SpatialOperation.Contains;
          } else if (operation.equalsIgnoreCase("intersects")) {
              return SpatialOperation.Intersects;
          } else {
              throw new IndexException("Operation is invalid: {}", operation);
          }
      }
docs: Returns the {@link SpatialOperation} representing the specified {@code String}.
  
  @param operation a {@code String} representing a {@link SpatialOperation}
  @return the {@link SpatialOperation} representing the specified {@code String}