Closed jrnorth closed 2 years ago
build now
Internal build has been started, your results will be available at build completion.
Build SUCCESS See the job results in legacy Jenkins UI or in Blue Ocean UI.
Should this be forward ported to master?
Hero successful
With the addition of the normWrapLongitude
to the Solr schema, will a full reindex of any data that might be impacted be required?
@kcwire
With the addition of the
normWrapLongitude
to the Solr schema, will a full reindex of any data that might be impacted be required?
That's a good question. I would think a reindex would be required, since any records with geometries outside that range should have failed to be indexed in the first place without normWrapLongitude
enabled, but I can do some testing to verify that.
@jlcsmith
Should this be forward ported to master?
I think so. The normWrapLongitude
change to the Solr schema has already been in master for a while, but the changes to SolrFilterDelegate
are new.
@kcwire ~Looks like records outside that range are ingested successfully, they are just marked as invalid.~
Turns out I mistakenly had normWrapLongitude
enabled when I tested that again. Records outside [-180, 180] are not ingested, so a reindex is required.
build now
Internal build has been started, your results will be available at build completion.
Build SUCCESS See the job results in legacy Jenkins UI or in Blue Ocean UI.
What does this PR do?
normWrapLongitude
in the Solr schema. Running a DWITHIN query (i.e., a buffered geometry) near the antimeridian often results in a Solr error because the resulting geometry contains points outside the valid longitude range of [-180,180]. The SolrFilterDelegate uses JTS to calculate the buffered geometry but does not enforce the longitude range on the result so it is passed to Solr with out-of-range values. EnablingnormWrapLongitude
means that Solr will wrap longitudes outside of the range into it.Who is reviewing it?
@jlcsmith @kcwire @millerw8
Select relevant component teams:
@codice/solr
How should this be tested?
gazetteer:update
with https://github.com/codice/ddf/blob/03be912e331024f3bc6856d5e87f8e3b7db0b392/distribution/ddf-common/src/main/resources/data/countries.geo.jsongazetteer:build-suggester-index
russia1.json
russia2.json
These locations are both within a 25km buffer of the Russia polygon, close to the antimeridian.
Checklist:
Notes on Review Process
Please see Notes on Review Process for further guidance on requirements for merging and abbreviated reviews.
Review Comment Legend: