/** * Matches an element, element pair, element attribute, pair, or path * specifying a geospatial point that appears within one of the criteria regions. * @param index the container for the coordinates of the geospatial point * @param scope whether the query matches the document content or properties * @param options options for fine tuning the query * @param regions the possible regions containing the point * @return the StructuredQueryDefinition for the geospatial query */ public StructuredQueryDefinition geospatial(GeospatialIndex index, FragmentScope scope, String[] options, Region... regions) { checkRegions(regions); return new GeospatialPointQuery(index, scope, regions, options); }
/** * Matches an element, element pair, element attribute, pair, or path * specifying a geospatial point that appears within one of the criteria regions. * @param index the container for the coordinates of the geospatial point * @param regions the possible regions containing the point * @return the StructuredQueryDefinition for the geospatial query */ public StructuredQueryDefinition geospatial(GeospatialIndex index, Region... regions) { checkRegions(regions); return new GeospatialPointQuery(index, null, regions, null); } /**