base template includes these
only remove AND if it's part of a date range query
inelegant, but functional map extent search